CVE Watchtower

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.
Severity Level
LOW
Published Date
May 21, 2026
Last Modified
Jul 16, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.18%Probability
Root Weakness (CWE)
The product prepares a structured message for communication with another component, but encoding or escaping of the data is missing or incorrect.

Affected & Patched Versions

Affected Versions
  • twig/markdown-extra < 3.26.0
  • twig/cssinliner-extra < 3.26.0
Patched Versions
  • 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.

  1. Check whether you run twig/markdown-extra and which version.
  2. 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 alerts

Data last checked: Nov 24, 2026 14:13 UTC