AI Science Tracker

Twig sandbox bypass in object-destructuring assignment

Twig · AI involvement attributed to Claude Mythos Preview

Finding and attribution

Twig’s object-destructuring compilation path hard-coded the sandbox check to false, bypassing property and method restrictions for templates with access to the affected expression. The project advisory credits Anvil Secure with Claude and Anthropic Research.

Product: Twig. AI system: Claude Mythos Preview. Team / organization: Anthropic / Anvil Security.

CVE identifiers: CVE-2026-46639.

AI and human contribution (source account): Project GHSA directly credits Claude collaboration; CVD identifies Claude Mythos Preview and Anvil Security triage.

Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.

Discovery context: Public vulnerability and AI-discovery attribution are documented. Sources do not establish exploitation in the wild or zero-day status.

Remediation status: fix documented. Fixed in Twig 3.26.0.

A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.

Disclosed 20 May 2026. AI attribution dated 17 Aug 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.

Recorded CVSS: High · highest recorded score 7.1. Documented technical effects: data disclosure, other.

Severity, consequences and exploitation evidence

Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.

CVE-2026-46639: data disclosure, other.
Prerequisites / affected scope: Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. This issue is fixed in version 3.26.0. CWE-693: Protection Mechanism Failure.
Exploitation evidence: The cited source does not state whether this issue was exploited in the wild.. Impact source · checked 16 Nov 2026.

Documented fix: Fixed in Twig 3.26.0.

Original evidence

Download this source record (JSON)

Open this case in the interactive tracker · Browse all static security cases