craftcms/cms is vulnerable to Server-Side Request Forgery (SSRF)
58
Medium Risk
The GraphQL save-asset mutation in Craft CMS fetches a user-supplied URL server-side, and its anti-SSRF IP validation is incomplete. Ranges such as CGNAT and NAT64 pass the filter, and the only IP check runs after the request has already connected and written the response body to disk, so a token scoped only to create assets can drive internal requests and read internal HTTP content. The behavior also allows blind enumeration of internal hosts and ports through distinct client-visible outcomes. The fix tightens IP validation and blocks the outbound request before it is issued.
You are affected if you are using a version that falls within the vulnerable range and you expose the GraphQL API to users who hold a token that can create assets from URLs.
craftcms/cms is vulnerable to Server-Side Request Forgery (SSRF) in versions 4.0.0 - 4.18.1 and 5.0.0 - 5.10.5.
Upgrade the craftcms/cms library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant