PT-2026-42171 · Drupal+1 · Drupal+1

Published

2026-05-20

·

Updated

2026-05-21

·

CVE-2026-46628

CVSS v4.0

1.3

Low

VectorAV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U
Name of the Vulnerable Software and Affected Versions Twig (affected versions not specified)
Description The spaceless filter is registered with is safe => ['html'], causing Twig's autoescaper to skip escaping its output in HTML contexts. This allows attacker-controlled input containing markup to be emitted unescaped, even when autoescape is enabled and the |raw filter is not used. This filter is deprecated but remains functional, and some downstream projects, such as Drupal modules, have duplicated the filter and inherited the same behavior.
Recommendations Update to a version where the spaceless filter no longer marks its output as safe. Avoid applying the spaceless filter to unsanitized user input.

Exploit

Fix

Improper Encoding or Escaping of Output

Weakness Enumeration

Related Identifiers

CVE-2026-46628
GHSA-4J38-F5CW-54H7

Affected Products

Drupal
Twig