Craft CMS: SQL injection in GraphQL eager-loading (CVE-2026-123491)
Craft CMS versions 4.x before 4.18.9 and 5.x before 5.11.2 are vulnerable to SQL injection via the GraphQL eager-loading mechanism, allowing unauthenticated attackers to disclose arbitrary database content.
CVE search metadata
CVE search record: CVE-2026-123491. KEV: no. Product: Craft CMS (4.0.0-4.18.9, 5.0.0-5.11.2). Brief: Craft CMS: SQL injection in GraphQL eager-loading (CVE-2026-123491). Brief link: https://feed.craftedsignal.io/briefs/2026-11-craft-cms-sqli-9b34e80d/
Triage facts
Revision 1- Applicability
- Craft CMS (4.0.0-4.18.9, 5.0.0-5.11.2)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 6, 17:24 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
Craft CMS contains an SQL injection vulnerability in the GraphQL eager-loading component. Unauthenticated attackers can supply a crafted select argument within eager-loadable nodes, which are then improperly processed by the EagerLoadPlan criteria. This flaw allows unauthorized read access to database records, including password hashes and session tokens.
Impact
Successful exploitation allows unauthenticated remote attackers to bypass application-level access controls and extract sensitive database contents. The vulnerability affects the confidentiality of the entire database, including authentication credentials and active session identifiers.
Recommendation
- Update Craft CMS installations to version 4.18.9 or 5.11.2 immediately to address the insecure handling of GraphQL arguments.
- Review database access logs for unusual queries originating from GraphQL API endpoints.
- Reset application-level credentials and invalidate active session tokens if indicators of database enumeration are identified.
Immediate actions
Upgrade Craft CMS to 4.18.9 or 5.11.2
Threat Hunt
Identify anomalous GraphQL POST requests containing SQL syntax in select arguments
Data: Web server access logs, GraphQL application audit logs
Mitigations
Apply security patch to affected Craft CMS versions
CVE-2026-123491