Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-25494
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 00:06 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 9 Feb 2026, 19:41 UTC

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.

osv:CVE-2026-25494
Complete source record
{
  "id": "3cdcf91c8822c15b0ff12e77370ba5ae460dad0a825b2d49e1f9ab3e70a2398e",
  "url": "https://osv.dev/vulnerability/CVE-2026-25494",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Craft has a SSRF in GraphQL Asset Mutation via Alternative IP Notation",
    "summary": "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.",
    "evidence": "osv:CVE-2026-25494",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-25494",
      "aliases": [
        "CVE-2026-25494",
        "GHSA-m5r2-8p9x-hp5m"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/craftcms/cms",
              "type": "GIT",
              "events": [
                {
                  "introduced": "04755d93f86d07cc183db47db8a0eee106892e30"
                },
                {
                  "fixed": "8e23a7a14d50f169c10a487348c993384d479e06"
                },
                {
                  "fixed": "d49e93e5ba0c48939ce5eaa6cd9b4a990542d8b2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5.0.0-RC1"
                      },
                      {
                        "fixed": "5.8.22"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d49e93e5ba0c48939ce5eaa6cd9b4a990542d8b2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8e23a7a14d50f169c10a487348c993384d479e06"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "5.8.22"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/nystudio107/craft-seomatic",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a31f7d211b52d55d274c66a291310ceec64c733f"
                },
                {
                  "last_affected": "a31f7d211b52d55d274c66a291310ceec64c733f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:craftcms:craft_cms:4.0.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0-NA"
                      },
                      {
                        "last_affected": "4.0.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.0-NA",
            "4.0.0-rc1",
            "4.0.0-rc2",
            "4.0.0-rc3",
            "5.0.0-rc1",
            "4.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-25494.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.572591413Z",
      "provider": "osv",
      "references": [
        "https://github.com/craftcms/cms/releases/tag/5.8.22",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25494.json",
        "https://github.com/craftcms/cms/security/advisories/GHSA-m5r2-8p9x-hp5m",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-25494",
        "https://github.com/craftcms/cms/commit/d49e93e5ba0c48939ce5eaa6cd9b4a990542d8b2"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-918"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25494.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-25494",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508257,
  "published_at": "2026-02-09T19:41:13.085+00:00"
}