CVE-2026-55791
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.
Scoring
- Severity
- MEDIUM
- CVSS base score
- 6.9
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- EPSS probability
- 0.46%
- CWE
- CWE-918, CWE-644, CWE-79
- Published
- 2026-07-01
- Last modified
- 2026-07-02
Affected products
- craftcms cms
- craftcms cms
Weakness type
Related vulnerabilities
- CVE-2026-90446 — An application programming interface endpoint accepts a user-supplied value and interpolates it...
- CVE-2026-49865 — Kimai has Server-Side Request Forgery in Invoice PDF Rendering via Markdown Image URLs
- CVE-2026-54166 — Shelf Vulnerable to Server-Side Request Forgery (SSRF) via Asset CSV Import imageUrl Validation Bypass
- CVE-2026-89242 — WWBN AVideo Unauthenticated SSRF via login.json.php
- CVE-2026-19486 — SSRF in Gemini Enterprise Agent Platform App Builder
- CVE-2026-54054 — Transmute has full-read SSRF in URL file import (POST /api/files/url) — no host/IP validation, follows redirects
- CVE-2026-79723 — Langflow is vulnerable to server-side request forgery due to missing egress validation on server-side URL fetches
- CVE-2026-81207 — DataStage on Cloud Pak for Data has several vulnerabilities due to open source software