CVE-2026-133770

The sandbox allows every method of Twig\Markup objects, including their public constructor. A sandboxed template can therefore call __construct() on any Markup object that it reaches, and replace its content: {% do banner.__construct('<script>alert(1)</script>', 'UTF-8') %} A template gains nothing by rewriting its own output. The impact is on the Markup objects that come from the application and are also rendered elsewhere, like a global in a long-running worker. Their new content then ends up in trusted pages that aren't sandboxed. The sandbox no longer allows calling the constructor of Markup objects.
CVSS

No CVSS.

Configurations

No configuration.

History

24 Nov 2026, 13:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-24 13:17

Updated : 2026-12-01 20:18


NVD link : CVE-2026-133770

Mitre link : CVE-2026-133770

CVE.ORG link : CVE-2026-133770


JSON object : View

Products Affected

No product.

CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-863

Incorrect Authorization