CVE-2026-46637
MEDIUM 5.1CVSS 4.0Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0.
- Published
- 14 Jul 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-116CWE-79
- Also known as
- GHSA-jv8m-2544-3pg3
- Sources
- NVDJSONOSV GHSA-jv8m-2544-3pg3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | symfony | twigcpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
< 3.26.0 | 3.26.0 |
| OSV | Packagist | twig/markdown-extra | < 3.26.0 | 3.26.0 |
| OSV | Packagist | twig/cssinliner-extra | < 3.26.0 | 3.26.0 |
References
- https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299 · Patch
- https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a · Patch
- https://github.com/twigphp/Twig/releases/tag/v3.26.0 · Release Notes
- https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3 · Vendor Advisory, WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/cssinliner-extra/CVE-2026-46637.yaml · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/markdown-extra/CVE-2026-46637.yaml · WEB
- https://github.com/twigphp/Twig · PACKAGE
- https://symfony.com/cve-2026-46637 · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 14 Jul 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 21 May 2026)