CVE-2026-55794: Craft CMS: Potential authenticated Remote Code Execution via referrer redirect

Published Jul 1, 2026
·
Updated

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.

Resources

https://github.com/craftcms/cms/pull/18680

Other sources

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.

NVD

Affected Software

2 affected componentsFixes available
Craft CMS Craft CMS>5.9.0<5.10.0
composer/craftcms/cms>=5.9.0<5.10.0
5.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 5.10.0
  2. Upgrade

    Upgrade Craft CMS to a version that resolves this vulnerability.

    Fixed in 5.10.0
  3. Compensating control

    Restrict access to the Craft CMS control panel so that only trusted users can edit entries, since authenticated control panel users with entry-editing permission can trigger the issue via the attacker-controlled HTTP Referer header while saving entries.

Event History

Jul 1, 2026
CVE Published
via MITRE·11:26 PM
Data Sourced
via MITRE·11:26 PM
DescriptionWeakness
Jul 2, 2026
Data Sourced
via NVD·12:16 AM
DescriptionSeverityWeakness
Jul 6, 2026
Advisory Published
via GitHub·09:37 PM
Data Sourced
via GitHub·09:37 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-55794?

The severity of CVE-2026-55794 is high with a CVSS score of 8.7.

2

What is CVE-2026-55794?

CVE-2026-55794 is a vulnerability in Craft CMS that allows authenticated users to execute unsandboxed Twig code via the HTTP Referrer header.

3

How do I fix CVE-2026-55794?

To fix CVE-2026-55794, upgrade your Craft CMS to version 5.10.0 or later.

4

Which versions of Craft CMS are affected by CVE-2026-55794?

Craft CMS versions 5.9.0 to 5.9.x, prior to 5.10.0, are affected by CVE-2026-55794.

5

What type of attack does CVE-2026-55794 represent?

CVE-2026-55794 represents a risk of authenticated Remote Code Execution through code injection.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203