MediumGHSA-x27p-wfqw-hfcc
Craft CMS vulnerable to Server-Side Request Forgery (SSRF) via GraphQL Asset Upload Mutation
Affected versions
5.0.0-RC1 to before 5.8.21, 3.5.0 to before 4.16.17 - fixed in 5.8.21Details
The Craft CMS GraphQL `save_<VolumeName>_Asset` mutation is vulnerable to Server-Side Request Forgery (SSRF). This vulnerability arises because the `_file` input, specifically its `url` parameter, allows the server to fetch content from arbitrary remote locations without proper validation. Attackers can exploit this by providing internal IP addresses or cloud metadata endpoints as the `url`, forcing the server to make requests to these restricted services. The fetched content is then saved as an asset, which can subsequently be accessed and exfiltrated, leading to potential data exposure and i
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-68437
- https://github.com/craftcms/cms/security/advisories/GHSA-x27p-wfqw-hfcc
- https://nvd.nist.gov/vuln/detail/CVE-2025-68437
- https://github.com/craftcms/cms/commit/013db636fdb38f3ce5657fd196b6d952f98ebc52
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/blob/5.x/CHANGELOG.md#5821---2025-12-04
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected