{"id":"CVE-2026-79991","summary":"Authenticated SQL Injection via nested eager-loading criteria","details":"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.","aliases":["GHSA-4mgp-5vf2-7c9m"],"modified":"2026-09-04T03:47:30.912536179Z","published":"2026-09-02T14:25:15.221Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/79xxx/CVE-2026-79991.json","cna_assigner":"Hackrate","cwe_ids":["CWE-89"]},"references":[{"type":"WEB","url":"https://packagist.org"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/79xxx/CVE-2026-79991.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/releases/tag/5.10.13"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-4mgp-5vf2-7c9m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79991"},{"type":"ADVISORY","url":"https://www.hckrt.com/hacktivity/HCKRT-B5BSMM"},{"type":"PACKAGE","url":"https://github.com/craftcms/cms"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"04755d93f86d07cc183db47db8a0eee106892e30"},{"fixed":"0b18123e8c3be1edcf6f785e9925e1b1007ce8c5"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"5.0.0-RC1"},{"fixed":"5.10.13"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-79991.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N"}]}