{"id":"CVE-2026-55791","published":"2026-07-01T23:13:58Z","modified":"2026-07-02T15:54:26Z","title":"Craft CMS: Blind SSRF and Arbitrary JavaScript Injection via Host Header Poisoning in actionResourceJs","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00464,"percentile":0.32211,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-644","name":"Improper Neutralization of HTTP Headers for Scripting Syntax"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-c55v-343g-5xff","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/pull/18559","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.44},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 5.0.0-RC1, < 5.10.0",">= 4.0.0-RC1, < 4.18.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-02T14:53:40.361993Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=5.0.0-RC1, <5.10",">=4.0.0-RC1, <4.18"],"patched":["5.10","4.18"],"from":["GHSA-c55v-343g-5xff"],"provenance":"source"}],"summary":{"text":"The flaw lies in the actionResourceJs endpoint (/actions/app/resource-js) of Craft CMS's cms product, where the Host or X-Forwarded-Host header can be used to poison the application's base URL and bypass internal URL validation. An unauthenticated remote attacker, requiring no user interaction, can exploit this under the default permissive trustedHosts configuration when assetManager.cacheSourcePaths is set to false, forcing the server to fetch attacker-controlled content and return it as application/javascript (enabling server-side request forgery and arbitrary JavaScript injection).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:09Z"},"euvd":{"id":"EUVD-2026-41211","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-50284","published":"2026-07-01","fixed":"5.9.22","kev":false},{"cve":"CVE-2026-55790","published":"2026-07-01","fixed":"5.9.23","kev":false,"link":{"from":"CVE-2026-55790","to":"CVE-2026-55791","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/cms","fromFixed":"4.17.16","toFixed":"4.18","daysApart":0}]}},{"cve":"CVE-2026-55793","published":"2026-07-01","fixed":"5.9.53","kev":false,"link":{"from":"CVE-2026-55793","to":"CVE-2026-55791","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/cms","fromFixed":"5.9.53","toFixed":"5.10","daysApart":0}]}},{"cve":"CVE-2026-55791","published":"2026-07-01","fixed":"5.10","kev":false},{"cve":"CVE-2026-55792","published":"2026-07-01","fixed":"5.10.0","kev":false},{"cve":"CVE-2026-55794","published":"2026-07-01","fixed":"5.10.0","kev":false},{"cve":"CVE-2026-14793","published":"2026-07-06","fixed":"5.10.3","kev":false,"link":{"from":"CVE-2026-55791","to":"CVE-2026-14793","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/cms","fromFixed":"4.18","toFixed":"4.18.1","daysApart":5},{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/cms","fromFixed":"5.10","toFixed":"5.10.3","daysApart":5}]}},{"cve":"CVE-2026-14794","published":"2026-07-06","fixed":"5.10.3","kev":false,"link":{"from":"CVE-2026-55791","to":"CVE-2026-14794","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/cms","fromFixed":"4.18","toFixed":"4.18.1","daysApart":5},{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/cms","fromFixed":"5.10","toFixed":"5.10.3","daysApart":5}]}}],"package":"Packagist:craftcms/cms"}}