CVE-2026-25497: Craft CMS GraphQL Asset Mutation Privilege Escalation Vulnerability

HIGH
Advisory Identifier: GHSA-fxp3-g6gw-4r4v
CWE-639 CWE-269
Published
Advisory Summary

CVE-2026-25497 is a HIGH graphql asset mutation privilege escalation vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Craft CMS libraries in the Packagist ecosystem. The issue involves graphql asset mutation privilege escalation. Remediation is available by upgrading affected packages to version 5.9.0-beta.1, 4.17.0-beta.1.

CVE-2026-25497 at a Glance

CVE Identifier CVE-2026-25497
GHSA Identifier GHSA-fxp3-g6gw-4r4v
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Craft CMS
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-25497

To remediate this vulnerability, upgrade all affected Craft CMS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

craftcms/cms fixed: 5.9.0-beta.1
Upgrade craftcms/cms to 5.9.0-beta.1
craftcms/cms fixed: 4.17.0-beta.1
Upgrade craftcms/cms to 4.17.0-beta.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for craftcms/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-25497, inspect your project dependencies for Craft CMS:

inspect dependencies for craftcms/cms

Analyze the terminal output to locate any version of Craft CMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.9.0-beta.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Craft CMS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

There is a Privilege Escalation vulnerability in Craft CMS’s GraphQL API that allows an authenticated user with write access to one asset volume to escalate their privileges and modify/transfer assets belonging to any other volume, including restricted or private volumes to which they should not have access. ## Summary: Type: Privilege Escalation (CWE-269) Affected: Craft CMS 5.x (likely affects 4.x and 3.x as well) Location: `src/gql/resolvers/mutations/Asset.php lines 57-107` ## Root Cause: The saveAsset GraphQL mutation validates authorization against the schema-resolved volume but fetches the target asset by ID without verifying that the asset belongs to the authorized volume. This allows unauthorized cross-volume asset modification and transfer. ## Impact: - Transfer confidential assets from private volumes to public volumes (data exfiltration) - Modify asset metadata in restricted volumes - Bypass multi-tenant isolation in shared hosting environments

CVE-2026-25497 Affected Craft CMS Versions

2 component(s)
Fixed Versions:
5.9.0-beta.14.17.0-beta.1
Product / Package Ecosystem Affected Versions Fixed Version
craftcms/cms
Packagist
≥ 5.0.0-RC1
< 5.9.0-beta.1
5.9.0-beta.1
craftcms/cms
Packagist
≥ 4.0.0-RC1
< 4.17.0-beta.1
4.17.0-beta.1

References

Frequently Asked Questions

What is CVE-2026-25497?
CVE-2026-25497 is a security vulnerability in Craft CMS involving GraphQL Asset Mutation Privilege Escalation under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Craft CMS versions are affected?
Affected versions include releases prior to 5.9.0-beta.1, 4.17.0-beta.1 across affected packages: craftcms/cms.
What version fixes CVE-2026-25497?
Upgrading to 5.9.0-beta.1, 4.17.0-beta.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is craftcms/cms affected?
Yes, craftcms/cms is affected in releases prior to 5.9.0-beta.1, 4.17.0-beta.1. Upgrade your dependency to 5.9.0-beta.1, 4.17.0-beta.1 or later.
What CWE is associated with CVE-2026-25497?
CVE-2026-25497 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Packagist dependencies for CVE-2026-25497?
Run the dependency tree command: 'inspect dependencies for craftcms/cms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fxp3-g6gw-4r4v",
  "modified" : "2026-02-09T22:39:11Z",
  "published" : "2026-02-09T20:36:24Z",
  "aliases" : [ "CVE-2026-25497" ],
  "summary" : "Craft CMS: GraphQL Asset Mutation Privilege Escalation",
  "details" : "There is a Privilege Escalation vulnerability in Craft CMS’s GraphQL API that allows an authenticated user with write access to one asset volume to escalate their privileges and modify/transfer assets belonging to any other volume, including restricted or private volumes to which they should not have access.\n\n## Summary:\n\nType: Privilege Escalation (CWE-269)\nAffected: Craft CMS 5.x (likely affects 4.x and 3.x as well)\nLocation: `src/gql/resolvers/mutations/Asset.php lines 57-107`\n\n## Root Cause:\n\nThe saveAsset GraphQL mutation validates authorization against the schema-resolved volume but fetches the target asset by ID without verifying that the asset belongs to the authorized volume. This allows unauthorized cross-volume asset modification and transfer.\n\n## Impact:\n\n- Transfer confidential assets from private volumes to public volumes (data exfiltration)\n- Modify asset metadata in restricted volumes\n- Bypass multi-tenant isolation in shared hosting environments",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "craftcms/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0-RC1"
      }, {
        "fixed" : "5.9.0-beta.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "craftcms/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-RC1"
      }, {
        "fixed" : "4.17.0-beta.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/security/advisories/GHSA-fxp3-g6gw-4r4v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25497"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/commit/ac7edf868c1a81fd9c4dc49d3b3edf1cce113409"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/craftcms/cms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/releases/tag/4.17.0-beta.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/releases/tag/5.8.22"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/releases/tag/5.9.0-beta.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269", "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-09T20:36:24Z",
    "nvd_published_at" : "2026-02-09T20:15:58Z"
  }
}