CVE-2026-46637twig/markdown-extra Improper Encoding or Escaping of Output
NVD
Vulnerability Summary
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.
Affected & Patched Versions
- twig/markdown-extra < 3.26.0
- twig/cssinliner-extra < 3.26.0
- twig/markdown-extra 3.26.0
- twig/cssinliner-extra 3.26.0
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run twig/markdown-extra and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- May 21, 2026Published
- Jul 16, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new twig/markdown-extra CVEsYou are reading CVE-2026-46637. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3
- Patchhttps://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299
- Patchhttps://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a
- Referencehttps://github.com/twigphp/Twig/releases/tag/v3.26.0
Data last checked: Nov 24, 2026 14:13 UTC