CVE Explorer
CVE-2026-47730
Twig is a template language for PHP. From 3.0.0 until 3.26.0, Twig\Profiler\Dumper\HtmlDumper writes Profile::getTemplate() and Profile::getName() into HTML output without escaping, allowing attacker-controlled template or profile names to inject arbitrary HTML when a browser renders the profiler dump. This issue is fixed in version 3.26.0.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"Twig","vendor":"twigphp","versions":[{"status":"affected","version":">= 3.0.0, < 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:b620f2ba1542602989ccba5c8f5332b33aa7291cc809d158a2b6d9b49d4f2503 · sha256:6a012d63b9fb785a… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.1,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"PASSIVE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:b620f2ba1542602989ccba5c8f5332b33aa7291cc809d158a2b6d9b49d4f2503 · sha256:6a012d63b9fb785a… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:b620f2ba1542602989ccba5c8f5332b33aa7291cc809d158a2b6d9b49d4f2503 · sha256:6a012d63b9fb785a… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/twigphp/Twig/commit/a5f6e8793e603ef34fa86aed2a72f9fbe0b43745","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/commit/a5f6e8793e603ef34fa86aed2a72f9fbe0b43745"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b620f2ba1542602989ccba5c8f5332b33aa7291cc809d158a2b6d9b49d4f2503 · sha256:6a012d63b9fb785a… · /containers/cna/references/1
{"name":"https://github.com/twigphp/Twig/releases/tag/v3.26.0","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b620f2ba1542602989ccba5c8f5332b33aa7291cc809d158a2b6d9b49d4f2503 · sha256:6a012d63b9fb785a… · /containers/cna/references/2
{"name":"https://github.com/twigphp/Twig/security/advisories/GHSA-2g2g-8p8h-fgwm","tags":["x_refsource_CONFIRM"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-2g2g-8p8h-fgwm"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b620f2ba1542602989ccba5c8f5332b33aa7291cc809d158a2b6d9b49d4f2503 · sha256:6a012d63b9fb785a… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.