Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-25494 EUVD-2026-6840GHSA-m5r2-8p9x-hp5m

Craft has a SSRF in GraphQL Asset Mutation via Alternative IP Notation

Published Feb 9, 2026 · Updated Feb 10, 2026 · Assigned by GitHub_M

Description

Craft is a platform for creating digital experiences. In Craft versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21, the saveAsset GraphQL mutation uses filter_var(..., FILTER_VALIDATE_IP) to block a specific list of IP addresses. However, alternative IP notations (hexadecimal, mixed) are not recognized by this function, allowing attackers to bypass the blocklist and access cloud metadata services. This issue is patched in versions 4.16.18 and 5.8.22.

Affected products

VendorProductAffectedFixed
craftcms cms >= 5.0.0-RC1, < 5.8.22 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist craftcms/cms >= 5.0.0-RC1, < 5.8.22 5.8.22 GHSA-m5r2-8p9x-hp5m
Packagist craftcms/cms >= 4.0.0-RC1, < 4.16.18 4.16.18 GHSA-m5r2-8p9x-hp5m

References