Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2026-25494

CVE-2026-25494: Craft CMS Vulnerable to SSRF in GraphQL Asset Mutation via Alternative IP Notation

February 9, 2026

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.


References

  • github.com/advisories/GHSA-m5r2-8p9x-hp5m
  • github.com/craftcms/cms
  • github.com/craftcms/cms/commit/d49e93e5ba0c48939ce5eaa6cd9b4a990542d8b2
  • github.com/craftcms/cms/releases/tag/4.16.18
  • github.com/craftcms/cms/releases/tag/5.8.22
  • github.com/craftcms/cms/security/advisories/GHSA-m5r2-8p9x-hp5m
  • nvd.nist.gov/vuln/detail/CVE-2026-25494

Code Behaviors & Features

Detect and mitigate CVE-2026-25494 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0-RC1 before 4.16.18, all versions starting from 5.0.0-RC1 before 5.8.22

Fixed versions

  • 5.8.22
  • 4.16.18

Solution

Upgrade to versions 4.16.18, 5.8.22 or above.

Source file

packagist/craftcms/cms/CVE-2026-25494.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:20 +0000.