---
id: CVE-2026-55794
aliases:
  - GHSA-f74w-488g-8x5r
title: 'Craft CMS: Potential authenticated Remote Code Execution via referrer redirect'
summary: 'Craft CMS: Potential authenticated Remote Code Execution via referrer redirect'
severity: high
cwe:
  - CWE-94
vendor: craftcms
product: craftcms/cms
ecosystem: composer
affected:
  - 'craftcms/cms >= 5.9.0, < 5.10.0'
patched:
  - craftcms/cms 5.10.0
published: '2026-07-06'
updated: '2026-07-06'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-f74w-488g-8x5r'
references:
  - url: 'https://github.com/craftcms/cms/security/advisories/GHSA-f74w-488g-8x5r'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-55794'
  - url: 'https://github.com/craftcms/cms/pull/18680'
  - url: 'https://github.com/advisories/GHSA-f74w-488g-8x5r'
tags:
  - ghsa
  - composer
epss: 0.00412
epssPercentile: 0.32638
ingestedAt: '2026-07-06T21:45:52.900Z'
---

## Overview

### 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

## Affected packages

- `craftcms/cms >= 5.9.0, < 5.10.0`

## Remediation

Upgrade to a patched release:

- `craftcms/cms 5.10.0`
