CVE-2026-44840: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in dgraph-io dgraph
Dgraph versions prior to 25.3.4 contain a vulnerability in the checkUserPassword GraphQL query that allows injection of arbitrary Dgraph Query Language (DQL) commands. This occurs because user-supplied password inputs are directly interpolated into a DQL query string without proper escaping or parameterization. The issue is fixed in version 25.3.4.
AI Analysis
Technical Summary
Dgraph, an open source distributed GraphQL database, is affected by a DQL injection vulnerability (CWE-943) in the checkUserPassword query prior to version 25.3.4. The vulnerability arises from unsafe use of fmt.Sprintf to insert user-supplied password values directly into a DQL checkpwd() query string without escaping special characters. An attacker can exploit this by injecting a password containing a double-quote character to break out of the intended string literal and append arbitrary DQL query blocks, potentially leading to unauthorized data exposure. The vulnerability has a CVSS 3.1 base score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, and impacts confidentiality but not integrity or availability. The issue is resolved in Dgraph version 25.3.4.
Potential Impact
Successful exploitation allows an unauthenticated attacker to inject arbitrary DQL commands via the password parameter in the checkUserPassword query, potentially exposing sensitive data. The vulnerability impacts confidentiality but does not affect integrity or availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade Dgraph to version 25.3.4 or later, where this vulnerability is patched. No other official remediation or temporary fixes are documented. Patch status is confirmed by the versioning information indicating the fix in 25.3.4.
CVE-2026-44840: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in dgraph-io dgraph
Description
Dgraph versions prior to 25.3.4 contain a vulnerability in the checkUserPassword GraphQL query that allows injection of arbitrary Dgraph Query Language (DQL) commands. This occurs because user-supplied password inputs are directly interpolated into a DQL query string without proper escaping or parameterization. The issue is fixed in version 25.3.4.
CVSS v3.1
Score 7.5high
Affected software
Run 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
Dgraph, an open source distributed GraphQL database, is affected by a DQL injection vulnerability (CWE-943) in the checkUserPassword query prior to version 25.3.4. The vulnerability arises from unsafe use of fmt.Sprintf to insert user-supplied password values directly into a DQL checkpwd() query string without escaping special characters. An attacker can exploit this by injecting a password containing a double-quote character to break out of the intended string literal and append arbitrary DQL query blocks, potentially leading to unauthorized data exposure. The vulnerability has a CVSS 3.1 base score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, and impacts confidentiality but not integrity or availability. The issue is resolved in Dgraph version 25.3.4.
Potential Impact
Successful exploitation allows an unauthenticated attacker to inject arbitrary DQL commands via the password parameter in the checkUserPassword query, potentially exposing sensitive data. The vulnerability impacts confidentiality but does not affect integrity or availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade Dgraph to version 25.3.4 or later, where this vulnerability is patched. No other official remediation or temporary fixes are documented. Patch status is confirmed by the versioning information indicating the fix in 25.3.4.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-07T21:21:48.352Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4e5b30c9d9e3dbe33e5269
Added to database: 07/08/2026, 14:14:08 UTC
Last enriched: 07/08/2026, 14:28:44 UTC
Last updated: 07/09/2026, 01:00:58 UTC
Views: 9
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.