CVE-2026-55791 Details
Description
Craft CMS is a content management system (CMS). Versions 4.0.0-RC1 and above, prior to 4.18.0 and 5.0.0-RC1, and above, prior to 5.10.0, are vulnerable to Server-Side Request Forgery (SSRF) and Arbitrary JavaScript Injection through the /actions/app/resource-js endpoint. By exploiting the default permissive trustedHosts configuration, an attacker can poison the Host or X-Forwarded-Host header to manipulate the application’s $baseUrl. This bypasses the endpoint’s internal URL validation, forcing the backend Guzzle client to fetch a malicious payload from an attacker-controlled server and reflect it to the client with a Content-Type: application/javascript header. The vulnerability manifests when assetManager.cacheSourcePaths is set to false. This issue has been fixed in versions 4.18.0 and 5.10.0.
A vulnerability in Craft CMS versions 4.0.0-RC1 prior to 4.18.0 and 5.0.0-RC1 prior to 5.10.0 allows for Server-Side Request Forgery (SSRF) and Arbitrary JavaScript Injection via the '/actions/app/resource-js' endpoint. Exploiting the default permissive 'trustedHosts' configuration, an attacker can manipulate the 'Host' or 'X-Forwarded-Host' header to alter the application's '$baseUrl'. This bypasses internal URL validation, enabling the backend Guzzle client to retrieve a malicious payload from an attacker-controlled server and deliver it to the client with a 'Content-Type: application/javascript' header. The vulnerability arises when 'assetManager.cacheSourcePaths' is disabled, and it can lead to Web Cache Poisoning, allowing for Stored Cross-Site Scripting and potentially Remote Code Execution.
Users can upgrade to Craft CMS versions 4.18.0 or 5.10.0 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 2, 2026CISA-ADP
Assessed Jul 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/craftcms/cms/pull/18559 | [email protected] | Issue TrackingVendor |
| https://github.com/craftcms/cms/security/advisories/GHSA-c55v-343g-5xff | [email protected] | AdvisoryTechnical AnalysisVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-644 | Improper Neutralization of HTTP Headers for Scripting Syntax | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Craft CMS | >= 5.0.0-RC1, < 5.10 >= 4.0.0-RC1, < 4.18 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 2, 2026 | CVE Modified | CISA-ADP |
| Jul 2, 2026 | New CVE Received | [email protected] |
Volerion