CVE-2026-25497: Craft CMS GraphQL Asset Mutation Privilege Escalation Vulnerability
HIGHCVE-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
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.
Upgrade craftcms/cms to 5.9.0-beta.1
Upgrade craftcms/cms to 4.17.0-beta.1
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
CVE-2026-25497 Affected Craft CMS Versions
2 component(s)| 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?
Which Craft CMS versions are affected?
What version fixes CVE-2026-25497?
Is craftcms/cms affected?
What CWE is associated with CVE-2026-25497?
How can I check Packagist dependencies for CVE-2026-25497?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}