CVE-2026-133770

low
EUVD alias: EUVD-2026-133919
Assigned by CNA: symfony
Published 2026-11-24 · Modified 2026-12-01
CVSS v3
—
CVSS v4 NEW
2.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
VIR risk
2.1

Description

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.

Predictions

Exploit likelihood
20%
Patch ETA
—

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.

Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

debian Debian Mixed 4 releases
VersionPackageStatusFixed in
trixie php-twig Affected —
sid php-twig Fixed 3.31.1-1
forky php-twig Fixed 3.31.1-1
bookworm php-twig Affected —

Package impact

EcosystemPackageVulnerableFixed
php Packagisttwig/twig>=1.0.0,<2.0.0|>=2.0.0,<3.0.0|>=3.0.0,<3.31.1

Application impact

VendorProductVersionsFixed
twigtwig_twig{"endExcluding":"3.31.1"}3.31.1

References

CWEs

CWE-79 CWE-863

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.