Intel

AIKIDO-2025-10914

craftcms/cms is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)GHSA-x27p-wfqw-hfcc Published Dec 10, 2025

55

Medium Risk

This Affects:

PHPcraftcms/cms
4.0.0 - 4.16.16
Fixed in 4.16.17
5.0.0 - 5.8.20
Fixed in 5.8.21
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Server-Side Request Forgery (SSRF) due to insufficient validation of user-supplied URLs in file handling code; the old code would accept any URL and attempt to fetch it, allowing an attacker to specify internal, loopback, or cloud metadata service addresses, but the patch mitigates this by validating that the hostname is a valid alphanumeric domain and not an IP address, thereby blocking attempts to exploit the server's trust relationship to probe internal networks or access sensitive data.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

craftcms/cms is vulnerable to Server-Side Request Forgery (SSRF) in versions 5.0.0 - 5.8.20 and 4.0.0 - 4.16.16.

How to fix this

Upgrade the craftcms/cms library to the patch version.