{"id":"CVE-2026-47730","published":"2026-07-14T21:21:10Z","modified":"2026-07-21T14:45:11Z","title":"Twig: XSS in profiler HtmlDumper via unescaped template and profile names","vendor":"twigphp","product":"Twig","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00295,"percentile":0.22672,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-2g2g-8p8h-fgwm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twigphp/Twig/commit/a5f6e8793e603ef34fa86aed2a72f9fbe0b43745","tags":["x_refsource_MISC"]},{"url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":4.53},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"twigphp","affectedVersions":[{"vendor":"twigphp","product":"Twig","versions":[">= 3.0.0, < 3.26.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-21T14:44:57.049205Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"twig/twig","vulnerableRanges":[">=3.0.0, <3.26.0"],"patched":["3.26.0"],"from":["GHSA-2g2g-8p8h-fgwm"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting weakness in the HtmlDumper component of the Twig template language for PHP, affecting versions from 3.0.0 up to 3.26.0, where profile template and name values are written into HTML output without escaping. An attacker who can control a template or profile name can inject arbitrary HTML that executes when a browser renders the profiler dump, which requires low privileges on the network and some user interaction to trigger.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:14Z"},"euvd":{"id":"EUVD-2026-44567","exploited":false,"provenance":"source"}}