{"id":"CVE-2026-41130","summary":"Craft CMS has a host header injection leading to SSRF via resource-js endpoint","details":"Craft CMS is a content management system (CMS). In versions on the 4.x branch through 4.17.8 and the 5.x branch through 5.9.14, the `resource-js` endpoint in Craft CMS allows unauthenticated requests to proxy remote JavaScript resources. \nWhen `trustedHosts` is not explicitly restricted (default configuration), the application trusts the client-supplied Host header. This allows an attacker to control the derived `baseUrl`, which is used in prefix validation inside `actionResourceJs()`. By supplying a malicious Host header, the attacker can make the server issue arbitrary HTTP requests, leading to Server-Side Request Forgery (SSRF). Versions 4.17.9 and 5.9.15 patch the issue.","aliases":["GHSA-95wr-3f2v-v2wh"],"modified":"2026-08-12T03:51:08.876303889Z","published":"2026-04-21T23:36:31.358Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-918"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41130.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41130.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-95wr-3f2v-v2wh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41130"},{"type":"FIX","url":"https://github.com/craftcms/cms/commit/ebe7e85f1c89700d64332f72492be2e9a594e783"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"04755d93f86d07cc183db47db8a0eee106892e30"},{"fixed":"84d783586bf0abf619a9d1909d93fdfdcaaf73a4"},{"introduced":"daac7c1da2f701f2e9ddee1da1457ce61660b581"},{"fixed":"ade6b5b843c82df6ac1661c453f1812294bdbef7"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"5.0.0-RC1"},{"fixed":"5.9.15"},{"introduced":"4.0.0-RC1"},{"fixed":"4.17.9"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41130.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"}]}