Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2026-55794

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

July 6, 2026

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

References

  • github.com/advisories/GHSA-f74w-488g-8x5r
  • github.com/craftcms/cms/pull/18680
  • github.com/craftcms/cms/security/advisories/GHSA-f74w-488g-8x5r
  • nvd.nist.gov/vuln/detail/CVE-2026-55794

Code Behaviors & Features

Detect and mitigate CVE-2026-55794 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.9.0 before 5.10.0

Fixed versions

  • 5.10.0

Solution

Upgrade to version 5.10.0 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/craftcms/cms/CVE-2026-55794.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 13 Jul 2026 00:19:26 +0000.