CVE-2026-47732
Last modified
CVE-2026-47732 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. Twig is a template language for PHP. Prior to 3.26.0, several Twig language constructs trigger PHP string coercion on a Stringable operand without consulting SecurityPolicy::checkMethodAllowed(), allowing a sandboxed template author to invoke __toString() on objects reachable in the render context through conditional expressions, comparison operators, tests, template-loading tags, dynamic attribute names, spread arguments, the do tag, and the .. EPSS estimates a 0.37% chance of exploitation in the next 30 days.
Description
Twig is a template language for PHP. Prior to 3.26.0, several Twig language constructs trigger PHP string coercion on a Stringable operand without consulting SecurityPolicy::checkMethodAllowed(), allowing a sandboxed template author to invoke __toString() on objects reachable in the render context through conditional expressions, comparison operators, tests, template-loading tags, dynamic attribute names, spread arguments, the do tag, and the .. range operator. This issue is fixed in version 3.26.0.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Symfony | Twig | < 3.26.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-47732?
How severe is CVE-2026-47732?
How do I fix CVE-2026-47732?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-47726nebula-mesh is a self-hosted control plane for Slack Nebula …7.1
- CVE-2026-47728Bugsink is a self-hosted error tracking tool. Prior to 2.2.0…4.3
- CVE-2026-47729Squid is a caching proxy for the Web. Prior to 7.6, due to a…6.5
- CVE-2026-4773Improper validation of specified type of input vulnerability…8.1
- CVE-2026-47730Twig is a template language for PHP. From 3.0.0 until 3.26.0…5.4
- CVE-2026-47731The AMMOS Instrument Toolkit (Formerly the Bespoke Links to …9.1
- CVE-2026-47733Rocket.Chat is an open-source, secure, fully customizable co…4.4
- CVE-2026-47734Dulwich is a pure-Python implementation of the Git file form…5.7
- CVE-2026-47736Puma is a Ruby/Rack web server built for parallelism. From 5…7.5
- CVE-2026-47737Puma is a Ruby/Rack web server built for parallelism. From 5…7.5
- CVE-2026-47739Frappe is a full-stack web application framework. Prior to v…6.9
- CVE-2026-47740Shopper is a Headless e-commerce Admin Panel. Prior to 2.8.0…8.1
Are you affected by CVE-2026-47732?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
