GQL entry mutation siteId bypasses schema site scope


Report #HCKRT-XEQKMX in Craft CMS Vulnerability Disclosure Program

Disclosed Report
StatusClosed
Resolved
TargetTier 1
craftcms/cms
Severity
High
Details
Program
Craft CMS Vulnerability Disclosure Program
Target
craftcms/cms
Creation Date
7/4/2026 8:24:22 AM
Severity
High
CVSS Score
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE Number
CVE-2026-79990
Affected versions
>= 5.0.0-RC1, < 5.10.11
Visibility
Disclosed
Disclosed at
9/1/2026 9:48:10 PM
Author
@ddme
Status
Resolved (Closed)
Vulnerability Type (CAPEC™)
Weakness (CWE)
(CWE-639) Authorization Bypass Through User-Controlled Key
Summary

GQL entry mutation siteId bypasses schema site scope, enabling cross-site content read/write/delete.

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.

Impact
  • Confidentiality: saveEntry loads the element by siteId — attacker can read content from unauthorized sites.
  • Integrity: saveEntry writes to the specified site’s elements_sites record; propagation spreads changes to all sites.
  • Availability: deleteEntry locates the element by siteId, then calls deleteElementById without siteId, deleting the element across all sites.
Timeline

Reporter

Created.

Saturday, July 4, 2026 8:24 AM
Tyrell

Changed to Accepted (Open)

Tuesday, July 14, 2026 11:34 AM
angrybrad

Changed to Resolved (Closed).Hi! The remediation was deployed, if you can bypass the fix, please let us know.

Sunday, July 19, 2026 5:09 PM
angrybrad

Github Security Advisory has been created. GHSA-h5cc-7m4w-5cmc

Friday, July 24, 2026 5:28 PM
angrybrad

Github Security Advisory has been created. GHSA-3wcr-p33w-528f

Friday, July 24, 2026 5:28 PM
Hackrate

Our platform helps companies to identify software vulnerabilities in a cost-efficient way. It provides a secure and centralized view of ethical hacking projects for your company.

US Patent Applied for HackGATE #63/645,845

Checking service status...

Hackrate Ethical Hacking Platform |
2026 ©

CVE Program Numbering Authority