{"id":"CVE-2026-41130","published":"2026-04-21T23:36:31Z","modified":"2026-04-22T14:18:56Z","title":"Craft CMS has a host header injection leading to SSRF via resource-js endpoint","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01086,"percentile":0.64834,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-95wr-3f2v-v2wh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/commit/ebe7e85f1c89700d64332f72492be2e9a594e783","tags":["x_refsource_MISC"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":12.97},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.85}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-41130","name":"Craft CMS < 4.17.9, < 5.9.15 - Unauthenticated Server-Side Request Forgery","severity":"medium","path":"http/cves/2026/CVE-2026-41130.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-41130.yaml"}],"provenance":"source"},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 5.0.0-RC1, < 5.9.15",">= 4.0.0-RC1, < 4.17.9"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-22T14:18:44.834770Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=5.0.0-RC1, <5.9.15",">=4.0.0-RC1, <4.17.9"],"patched":["5.9.15","4.17.9"],"from":["GHSA-95wr-3f2v-v2wh"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-24571","exploited":false,"provenance":"source"}}