Summary
CVE-2026-123491 is an unauthenticated SQL injection vulnerability (CWE-89) in the GraphQL eager-loading logic of Craft CMS. It affects Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2. It is rated High: CVSS v4.0 8.8 and CVSS v3.1 8.2.
Technical details
- Root cause: arguments from eager-loadable nodes that are absent from the public GraphQL schema are copied into
EagerLoadPlan::$criteriaand applied viaCraft::configure()without sanitization. Yii’s query builder then emitsselectvalues containing parentheses directly into SQL. - Trigger conditions: the public GraphQL schema is enabled with anonymous read access to entries or assets (but not user groups), and at least one entry has an author or at least one asset has an uploader ID.
- Attack vector: network, unauthenticated. The attacker injects SQL expressions through parenthesized
selectarguments in GraphQL queries. - Impact: disclosure of user email addresses and password hashes, session and verification tokens, and any other database content, regardless of GraphQL schema scope.
Affected software
- Craft CMS 4.x: 4.0.0 through 4.18.8
- Craft CMS 5.x: 5.0.0 through 5.11.1
Severity
- CVSS v4.0: 8.8 (High), AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N
- CVSS v3.1: 8.2 (High), AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Mitigation and recommended actions
- Immediate: upgrade to Craft CMS 4.18.9 or later (4.x branch), or 5.11.2 or later (5.x branch).
- Workaround (per the vendor advisory): granting the public schema user-group read access exposes
uploader/authoras real fields with fixed arguments, so injectedselectparameters are rejected as unknown. Upgrading remains the recommended fix. - After patching, consider rotating credentials and invalidating sessions if the public GraphQL endpoint was exposed.

