Craft CMS CVE-2026-41130
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP request with malicious Host header
-
DeliveryDerive attacker-controlled baseUrl from header
-
ExploitBypass prefix validation using corrupted baseUrl
-
ExecutionIssue server-side request to attacker-specified target
-
ImpactEnumerate internal services or exfiltrate data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The resource-js endpoint must be publicly accessible without authentication restrictions. The application must be running with default |
| Impact | The CVSS v4.0 score of 5.5 with AV:N/AC:L/PR:H vector indicates network-reachable exploitation requiring high privileges, which appears inconsistent with the description stating 'unauthenticated requests.' Closer examination of the vector shows PR:H (high privilege required), contradicting the claim of unauthenticated exploitation. This discrepancy requires verification with the vendor. The SSRF impact (VC:H - confidentiality impact) is rated high, enabling attackers to enumerate internal services, access metadata endpoints, or interact with backend systems. However, the high privilege requirement significantly limits real-world risk compared to unauthenticated SSRF. The presence of exploit code availability (E:P in vector) and the fact that this affects default configurations without explicit |
| Exploit ScenarioDerived | An attacker sends a crafted HTTP request to the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 22, 2026
Server-Side Request Forgery (SSRF) in Craft CMS 4.x through 4.17.8 and 5.x through 5.9.14 allows unauthenticated attackers to proxy arbitrary remote HTTP requests via the resource-js endpoint when trustedHosts is not explicitly configured. By manipulating the Host header, attackers can control the derived baseUrl used in validation, bypassing prefix checks and forcing the server to issue requests to arbitrary destinations. Patch versions 4.17.9 and 5.9.15 address the vulnerability.
RemediationAI
Upgrade to Craft CMS 4.17.9 or later for the 4.x branch, or 5.9.15 or later for the 5.x branch. These patched versions address the Host header validation flaw in the resource-js endpoint. For organizations unable to patch immediately, explicitly configure the trustedHosts setting in the application configuration to restrict accepted Host header values to known, legitimate domain names. This prevents the attacker from controlling the derived baseUrl through header manipulation. Document and whitelist only the specific hosts (e.g., example.com, www.example.com) that should be trusted; avoid overly permissive patterns. Note that this workaround requires application restart after configuration changes and may break legitimate multi-domain setups if not configured comprehensively. Test the trustedHosts configuration in a staging environment before production deployment to ensure no legitimate requests are blocked. Refer to the patched commit ebe7e85f1c89700d64332f72492be2e9a594e783 in the Craft CMS repository for implementation details.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the actionResourceJs() method within Craft CMS's resource proxying functionality. In default configurations, the application derives the baseUrl from the client-supplied Host header without restrictive validation when trustedHosts is not explicitly set. The endpoint uses this baseUrl for prefix validation to determine which remote URLs are eligible for proxying. CWE-918 (Server-Side Request Forgery) occurs because the application accepts unvalidated user input (Host header) to construct internal URLs without proper canonicalization or allowlist enforcement. The resource-js endpoint is designed to proxy JavaScript resources but becomes a vector for SSRF when the Host header trust boundary is misconfigured. This affects both the 4.x and 5.x branches, indicating the underlying design flaw persists across major versions.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB