Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-55794: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in craftcms cms

0
High
VulnerabilityCVE-2026-55794cvecve-2026-55794cwe-1336cwe-94
Published: 07/01/2026 (07/01/2026, 23:26:22 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
Low
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L

Affected software

GitHub Actionsmore threats →ai
craftcms/cms
pkg:github/craftcms/cms
Affected versions
>=5.9.0 <5.10.0

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

AILast updated: 07/02/2026, 00:06:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses