CVE-2026-79991: CWE-89 Improper neutralization of special elements used in an SQL command ('SQL injection') in craftcms cms
Description
Craft CMS GraphQL entry mutation resolvers (saveEntry, deleteEntry) read siteIddirectly from$argumentswithout passing throughArgumentManagerprepareArguments(), which is the function that enforces site-scope filtering via array_intersect against the GraphQL schema’s allowed sites. The query path (ElementResolverprepareElementQuery) correctly calls prepareArguments()`, so queries to unauthorized sites return empty. But mutations bypass this entirely — an attacker with a token scoped to Site A can create, modify, or delete entries in Site B by passing siteId in the mutations argument.
CVSS v4.0
Score 7.1high
Affected software
craftcms
cms
pkg:composer/craftcms/cmsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Craft CMS 5.0.0-RC1 involves improper neutralization of special elements used in SQL commands (CWE-89). Specifically, the GraphQL entry mutation resolvers (saveEntry, deleteEntry) do not pass the siteId argument through the ArgumentManager's prepareArguments() function, which enforces site-scope filtering. As a result, an attacker with a token scoped to Site A can manipulate entries in Site B by specifying siteId in mutation arguments. While queries correctly enforce site restrictions, mutations do not, leading to unauthorized data modification across site boundaries.
Potential Impact
An attacker with limited privileges scoped to one site can perform unauthorized mutations (create, modify, delete) on entries belonging to other sites within the same Craft CMS instance. This can lead to data integrity issues and unauthorized data manipulation. The vulnerability has a CVSS 4.0 base score of 7.1 (high severity), indicating significant risk if exploited.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access tokens to trusted users and monitor for suspicious mutation activity. Avoid using the affected version 5.0.0-RC1 in production environments.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Hackrate
- Date Reserved
- 2026-08-25T16:39:03.171Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9834beacd9273b49595b5b
Added to database: 09/02/2026, 14:37:50 UTC
Last enriched: 09/07/2026, 13:34:49 UTC
Last updated: 10/17/2026, 18:48:22 UTC
Views: 95
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.