Back
CVE-2026-46637
Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
Medium5.1EPSS 0.30%
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 4.0 | Medium5.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 |
| NVDNVD · Analyzed | 4.0 | Medium5.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 |
- EPSS (exploitation in 30 days)
- 0.30% · top 77% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.1.
Weakness
Affected products
- affected < 3.26.0
- affected < 3.26.0
- affected < 3.26.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagisttwig/cssinliner-extraGHSA-jv8m-2544-3pg3 (opens in a new tab)
- Packagisttwig/markdown-extraGHSA-jv8m-2544-3pg3 (opens in a new tab)
References (4)
- https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299 (opens in a new tab)x_refsource_MISC
- https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a (opens in a new tab)x_refsource_MISC
- https://github.com/twigphp/Twig/releases/tag/v3.26.0 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-jv8m-2544-3pg3 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2026-46637)Record last updated .