Craft CMS GraphQL Mutation Server-Side Request Forgery Vulnerability

Vulnerability

A server-side request forgery (SSRF) vulnerability has been identified in Craft CMS versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21. The issue arises in the 'saveAsset' GraphQL mutation, which attempts to block certain IP addresses using standard IP validation. However, this validation fails to recognize alternative IP notations, such as hexadecimal or mixed formats, allowing attackers to bypass the blocklist and access cloud metadata services. This vulnerability has been patched in Craft CMS versions 4.16.18 and 5.8.22.

Impact

Exploitation of this vulnerability allows for unauthorized access to cloud metadata services, potentially leading to the exposure of sensitive information.

Reproduction

To reproduce this vulnerability, send a GraphQL mutation using the 'save_images_Asset' mutation. Include a URL that uses a hexadecimal notation of an IP address within the169.254.0xa9fe range, which is resolved to169.254.169.254' by Guzzle. The cloud metadata is then fetched and saved, demonstrating the successful bypass of the IP blocklist.

Remediation

Users can update to Craft CMS versions 4.16.18 or 5.8.22 to address this vulnerability.

Added: Feb 9, 2026, 8:24 PM
Updated: Feb 9, 2026, 10:24 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
3.1
exploitability
5.8
remediation
7.7
relevance
2.6
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.