CVE-2026-46637: twigphp Twig · Improper Encoding or Escaping of Output
Affects twigphp TwigSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 3.26.0 when convenient.
Data as of 26 Nov 2026, 14:59 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.26.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade Twig and cssinliner-extra and markdown-extra and twig/markdown-extra and twig/cssinliner-extra to 3.26.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| twigphpTwig | Affected
| Fixed in
|
| twigcssinliner-extra | Affected
| Fixed in
|
| twigmarkdown-extra | Affected
| Fixed in
|
Packagisttwig/markdown-extrapkg:composer/twig/markdown-extraOther threats | Affected
| Fixed in
|
Packagisttwig/cssinliner-extrapkg:composer/twig/cssinliner-extraOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Twig to version 3.26.0 or later, where the issue is fixed. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor advisory stating the fix is included in 3.26.0.
Description
Twig before version 3.26.0 improperly marks several filters in twig/markdown-extra and twig/cssinliner-extra as safe for all output contexts, including HTML, JavaScript, CSS, and URLs, without proper escaping. This can lead to improper encoding or escaping of output, potentially causing security issues. The vulnerability is fixed in version 3.26.0.
References
- github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3 (opens in a new tab)
- github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299 (opens in a new tab)
- github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a (opens in a new tab)
- github.com/twigphp/Twig/releases/tag/v3.26.0 (opens in a new tab)