# Craft CMS: Potential authenticated Remote Code Execution via referrer redirect

High severity, published 2026-07-06. Update craftcms/cms to 5.10.0 or later: composer update craftcms/cms.

Canonical URL: https://buzzphp.com/security/ghsa-f74w-488g-8x5r · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-06 |
| Updated | 2026-07-06 |
| CVE | [CVE-2026-55794](https://nvd.nist.gov/vuln/detail/CVE-2026-55794) |
| GHSA | [GHSA-f74w-488g-8x5r](https://github.com/advisories/GHSA-f74w-488g-8x5r) |
| Weakness | CWE-94 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| craftcms/cms | >= 5.9.0, < 5.10.0 | 5.10.0 |

## What to do

Update craftcms/cms to 5.10.0 or later: composer update craftcms/cms.

Check which version you run with `composer show craftcms/cms`, and every affected package with `composer audit`.

## About this advisory

Requirements:

Control panel access Permissions to edit an entry

Details

Control panel users with the ability to edit entries can execute unsandboxed Twig code via the HTTP Referrer header.

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 has been fixed in Craft 5.10.0. Affected users should update to that version or higher to get the fix.



## Links

- [GHSA-f74w-488g-8x5r on GitHub](https://github.com/advisories/GHSA-f74w-488g-8x5r)
- [CVE-2026-55794 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-55794)
- [All Composer security advisories](https://buzzphp.com/security)
