Craft CMS Vulnerable to SSRF in GraphQL Asset Mutation via HTTP Redirect
Package
Affected versions
>= 5.0.0-RC1, <= 5.8.21
>= 4.0.0-RC1, <= 4.16.17
Patched versions
5.8.22
4.16.18
Description
Published by the National Vulnerability Database
Feb 9, 2026
Published to the GitHub Advisory Database
Feb 9, 2026
Reviewed
Feb 9, 2026
Last updated
Feb 9, 2026
Summary
The
saveAssetGraphQL 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):attacker.com(passes)169.254.169.254Mitigation
References