CVE-2026-55794 Craft CMS: Potential authenticated Remote Code Execution via referrer redirect
Authenticated attackers can execute arbitrary code via Twig injection in the HTTP Referrer header during entry saving.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-55794?
CVE-2026-55794 is a high-severity code injection vulnerability in craftcms cms, published on 1 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Craft CMS is a content management system (CMS). In versions 5.9.0 and above prior to 5.10.0, control panel users with the ability to edit entries can execute unsandboxed Twig code via the HTTP Referrer header, potentially leading to authenticated RCE. The issue happens when a user is saving entries. Strings for a signed redirect URL are being compiled as a Twig template via renderObjectTemplate(), and while a sandboxed alternative already exists (renderSandboxedObjectTemplate()), it is not used in this case. This signed URL can be specified by users, as it is reflected in the “Referer” HTTP request header, which is under attacker control. This issue has been fixed in version 5.10.0.
Which versions are affected by CVE-2026-55794?
2 open source packages ship an affected version, including craftcms/cms.
| Package | Affected | Fixed in |
|---|---|---|
craftcms/cms Packagist | From 5.9.0 | 5.10.0 |
craftcms/cms Packagist | From 5.9.0 | 5.10.0 |
How do I fix CVE-2026-55794?
Upgrade craftcms/cms to 5.10.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-55794 being exploited?
There is no known exploitation of CVE-2026-55794 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-f74w-488g-8x5r.