Craft CMS has a host header injection leading to SSRF via resource-js endpoint
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-41130
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 11:04 UTC · Revision 1
Source evidence
Craft CMS has a host header injection leading to SSRF via resource-js endpoint
core-osv · Original sourcePublished 21 Apr 2026, 23:36 UTC
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.
osv:CVE-2026-41130
Complete source record
{
"id": "9ff40dea2e267eed248611dc698e93e14d839490c3924593772d48a90bae15dd",
"url": "https://osv.dev/vulnerability/CVE-2026-41130",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Craft CMS has a host header injection leading to SSRF via resource-js endpoint",
"summary": "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.",
"evidence": "osv:CVE-2026-41130",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-41130",
"aliases": [
"CVE-2026-41130",
"GHSA-95wr-3f2v-v2wh"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/craftcms/cms",
"type": "GIT",
"events": [
{
"introduced": "04755d93f86d07cc183db47db8a0eee106892e30"
},
{
"fixed": "84d783586bf0abf619a9d1909d93fdfdcaaf73a4"
},
{
"introduced": "daac7c1da2f701f2e9ddee1da1457ce61660b581"
},
{
"fixed": "ade6b5b843c82df6ac1661c453f1812294bdbef7"
},
{
"fixed": "ebe7e85f1c89700d64332f72492be2e9a594e783"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "5.0.0-RC1"
},
{
"fixed": "5.9.15"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "4.0.0-RC1"
},
{
"fixed": "4.17.9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "ebe7e85f1c89700d64332f72492be2e9a594e783"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41130.json"
}
}
],
"modified": "2026-10-28T02:30:28.202080337Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41130.json",
"https://github.com/craftcms/cms/security/advisories/GHSA-95wr-3f2v-v2wh",
"https://nvd.nist.gov/vuln/detail/CVE-2026-41130",
"https://github.com/craftcms/cms/commit/ebe7e85f1c89700d64332f72492be2e9a594e783"
],
"provider_metadata": {
"cwe_ids": [
"CWE-918"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41130.json"
}
},
"related_cves": [
{
"value": "CVE-2026-41130",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494775,
"published_at": "2026-04-21T23:36:31.358+00:00"
}