CVE-2026-55794: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in craftcms cms
Craft CMS versions 5.9.0 up to but not including 5.10.0 contain a vulnerability where control panel users with entry editing permissions can execute unsandboxed Twig code via the HTTP Referer header when saving entries. This occurs because a signed redirect URL is compiled as a Twig template without sandboxing, allowing potential authenticated remote code execution. The issue is fixed in version 5.10.0.
AI Analysis
Technical Summary
In Craft CMS versions 5.9.0 through 5.9.x, control panel users with the ability to edit entries can exploit improper neutralization of special elements in the Twig template engine by supplying a crafted HTTP Referer header. The signed redirect URL string is compiled using renderObjectTemplate() without sandboxing, despite the existence of a sandboxed alternative renderSandboxedObjectTemplate(). This flaw allows execution of arbitrary Twig code during entry save operations, potentially leading to authenticated remote code execution. The vulnerability is addressed in version 5.10.0.
Potential Impact
An attacker with control panel entry editing permissions can execute arbitrary Twig code via the HTTP Referer header, potentially resulting in authenticated remote code execution. This elevates the risk of full system compromise under the affected versions prior to 5.10.0.
Mitigation Recommendations
Upgrade Craft CMS to version 5.10.0 or later, where this vulnerability is fixed by using sandboxed template rendering for the signed redirect URL. Patch status is not explicitly stated beyond the fix in 5.10.0, so users should apply this official update promptly.
CVE-2026-55794: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in craftcms cms
Description
Craft CMS versions 5.9.0 up to but not including 5.10.0 contain a vulnerability where control panel users with entry editing permissions can execute unsandboxed Twig code via the HTTP Referer header when saving entries. This occurs because a signed redirect URL is compiled as a Twig template without sandboxing, allowing potential authenticated remote code execution. The issue is fixed in version 5.10.0.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In Craft CMS versions 5.9.0 through 5.9.x, control panel users with the ability to edit entries can exploit improper neutralization of special elements in the Twig template engine by supplying a crafted HTTP Referer header. The signed redirect URL string is compiled using renderObjectTemplate() without sandboxing, despite the existence of a sandboxed alternative renderSandboxedObjectTemplate(). This flaw allows execution of arbitrary Twig code during entry save operations, potentially leading to authenticated remote code execution. The vulnerability is addressed in version 5.10.0.
Potential Impact
An attacker with control panel entry editing permissions can execute arbitrary Twig code via the HTTP Referer header, potentially resulting in authenticated remote code execution. This elevates the risk of full system compromise under the affected versions prior to 5.10.0.
Mitigation Recommendations
Upgrade Craft CMS to version 5.10.0 or later, where this vulnerability is fixed by using sandboxed template rendering for the signed redirect URL. Patch status is not explicitly stated beyond the fix in 5.10.0, so users should apply this official update promptly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-17T14:40:28.380Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a45a80827e9c797195b4148
Added to database: 07/01/2026, 23:51:36 UTC
Last enriched: 07/02/2026, 00:06:20 UTC
Last updated: 07/02/2026, 00:11:11 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.