Improper Encoding or Escaping of Output Affecting twig/cssinliner-extra package, versions <3.26.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-TWIGCSSINLINEREXTRA-16875125
  • published26 May 2026
  • disclosed21 May 2026
  • creditClaude Mythos

Introduced: 21 May 2026

NewCVE-2026-46637  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade twig/cssinliner-extra to version 3.26.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the html_to_markdown, markdown_to_html, and inline_css filters due to incorrect declaration of output safety. An attacker can inject unescaped HTML or script content by supplying specially crafted input that is processed by these filters and then rendered in a sensitive context, such as within a JavaScript string or URL parameter.

CVSS Base Scores

version 4.0
version 3.1