CVE-2026-25492
GraphQL SSRF in Craft CMS Allows Internal Data Exposure
Publication date: 2026-02-09
Last updated on: 2026-02-19
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| craftcms | craft_cms | From 3.5.0 (inc) to 4.16.18 (exc) |
| craftcms | craft_cms | From 5.0.0 (inc) to 5.8.22 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-918 | The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. |
Attack-Flow Graph
AI Powered Q&A
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update Craft CMS to a patched version. The issue is fixed in versions 4.16.18 and 5.8.22, so upgrading to at least these versions will address the problem.
Can you explain this vulnerability to me?
This vulnerability exists in Craft CMS versions 3.5.0 through 4.16.17 and 5.0.0-RC1 through 5.8.21. It involves the save_images_Asset GraphQL mutation, which can be exploited by an authenticated attacker with permission to use this mutation.
The attacker can provide a domain name that resolves to an internal IP address, bypassing hostname validation. If the system allows non-image file extensions such as .txt, the usual image validation checks are bypassed.
This allows the attacker to retrieve sensitive data from internal URLs, including AWS instance metadata credentials from the underlying host.
The issue has been fixed in versions 4.16.18 and 5.8.22.
How can this vulnerability impact me? :
An attacker exploiting this vulnerability can access sensitive internal data by bypassing hostname validation and image validation checks.
Specifically, they can retrieve sensitive information such as AWS instance metadata credentials, which could lead to unauthorized access to cloud resources and further compromise of the system.
This could result in data breaches, unauthorized actions within your infrastructure, and potential loss of control over your environment.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know