CVE-2026-46638: twigphp Twig · Protection Mechanism Failure
Affects twigphp TwigSource CVE Database V5
Not known to be exploited · CVSS 6.0 Medium : upgrade to 3.26.0 when convenient.
Data as of 26 Nov 2026, 14:59 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 33% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.26.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade Twig and twig/twig to 3.26.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| twigphpTwig | Affected
| Fixed in
|
Packagisttwig/twigpkg:composer/twig/twigOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Twig to version 3.26.0 or later, where this vulnerability is fixed. No other mitigations are indicated. Patch status is confirmed fixed in 3.26.0.
Description
Twig, a PHP template language, has a protection mechanism failure vulnerability prior to version 3.26.0. The issue involves the sandbox feature where {% sandbox %}{% include %} can include a template previously loaded outside the sandbox without re-checking security policies. This allows cached templates to use tags, filters, and functions that should have been denied by SecurityPolicy::checkSecurity(). The vulnerability is fixed in version 3.26.0.