# CVE-2026-41130: Craft CMS has a host header injection leading to SSRF via resource-js endpoint

- Severity: Medium 5.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T23:36:09.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-95wr-3f2v-v2wh
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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. 
When `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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 5.0.0-RC1, < 5.9.15; >= 4.0.0-RC1, < 4.17.9
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.9.15; from 4.0.0-RC1 before 4.17.9

## Every score

- GitHub_M: CVSS:4.0 5.5 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-95wr-3f2v-v2wh> (exploit, web)
- <https://github.com/craftcms/cms/commit/ebe7e85f1c89700d64332f72492be2e9a594e783> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41130> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2026-41130](https://www.cve.org/CVERecord?id=CVE-2026-41130), CVE Terms of Use, modified 2026-04-22
- GitHub Advisory Database: [GHSA-95wr-3f2v-v2wh](https://github.com/advisories/GHSA-95wr-3f2v-v2wh), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-41130](https://nvd.nist.gov/vuln/detail/CVE-2026-41130), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41130 · Whole record: https://cve.day/CVE-2026-41130.json · Rebuilt by cve.day 2026-11-25T22:59:19.217Z
