Skip to main content

Craft CMS CVE-2026-41130

MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-04-22 security-advisories@github.com
5.5
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with malicious Host header
  2. Delivery
    Derive attacker-controlled baseUrl from header
  3. Exploit
    Bypass prefix validation using corrupted baseUrl
  4. Execution
    Issue server-side request to attacker-specified target
  5. Impact
    Enumerate 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 trustedHosts configuration (unset or permissive), which trusts all Host header values supplied by clients. The attacker must craft an HTTP request containing both a malicious Host header and a request for resource proxying within the same connection. Non-default configurations where trustedHosts is explicitly restricted to a specific set of legitimate domains eliminate this vulnerability; such organizations are not at risk despite using vulnerable versions. Exploitation requires network access to the web server but does NOT require authentication credentials, valid sessions, or special user roles.

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 trustedHosts configuration increases practical risk for unpatched deployments. The vulnerability is NOT in CISA KEV at time of analysis, suggesting either limited active exploitation or recent disclosure. Defenders should prioritize patching only if their deployments use default trustedHosts settings; organizations with explicit Host header restrictions may be unaffected despite CVSS severity.

Exploit ScenarioDerived

An attacker sends a crafted HTTP request to the resource-js endpoint with a malicious Host header (e.g., Host: attacker.com). The vulnerable application derives the baseUrl as http://attacker.com/ and uses this in prefix validation. The attacker then requests proxying of a resource URL pointing to an internal service (e.g., http://localhost:8080/admin), which bypasses the prefix check because the baseUrl derivation was corrupted. The server issues the request to the attacker-controlled destination, allowing reconnaissance of internal services or credential harvesting from metadata endpoints.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

composer craftcms/cms fix: 4.17.9, 5.9.15

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

Vendor (github) PRIMARY 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

Primary rating from Vendor (github) · only source for this CVE.

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.0%
Top 89% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Related Vulnerabilities in Craft CMS Authorization and SSRF Flaws

View all 3

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy