Twig is a template language for PHP. Prior to 3.26.0, {% sandbox %}{% include %} can include a template that was previously loaded outside the sandbox without re-invoking checkSecurity(), allowing the cached template to use tags, filters, and functions that should have been denied by SecurityPolicy::checkSecurity(). This issue is fixed in version 3.26.0.
CVE-2026-46638
This medium-severity CVE scores 6.0 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.1%, top 79% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.0
- EG Score
- 6.0(low)
- EPSS
- 17.4%
- KEV
- Not listed
Published
May 21, 2026
Last Modified
July 15, 2026
Advisory Details (3)
Auto-updated Jul 15, 2026`{% sandbox %}{% include %}` skips checkSecurity() on cached templates (incomplete fix for CVE-2024-45411) · Advisory · twigphp/Twig · GitHub
https://github.com/twigphp/Twig/security/advisories/GHSA-7fxw-r6jv-74c8v3.26.0
Patch available: twigphp/Twig v3.26.0
https://github.com/twigphp/Twig/releases/tag/v3.26.0commit 819c6a89fe0f (twigphp/Twig)
Patch available: twigphp/Twig v3.26.0 (contains commit 819c6a89fe0f)
https://github.com/twigphp/Twig/commit/819c6a89fe0f261b8555c4f4d5e27d31984223eaVendor Advisories for CVE-2026-46638(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| twig/twig | 1.3.0 ... v3.9.3 (242 versions) | 3.26.0 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 3× in last 7d / 3× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-14 21:36 UTCEG score recompute▲ 6.00
- 2026-07-14 21:35 UTCMITRE cvelistV5CVSS v3 → 6 · CVSS v4 → 6
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-14 00:49 UTCEG score recompute
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-05-24 06:10 UTCEG score recompute
Frequently asked(5)
What is CVE-2026-46638?
When was CVE-2026-46638 disclosed?
Is CVE-2026-46638 actively exploited?
What is the CVSS score of CVE-2026-46638?
How do I remediate CVE-2026-46638?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-46638
Is Your Infrastructure Affected by CVE-2026-46638?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.