CVE-2026-44840: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in dgraph-io dgraph
Dgraph is an open source distributed GraphQL database. Prior to version 25.3.4, the `checkUserPassword` GraphQL query in Dgraph is vulnerable to DQL (Dgraph Query Language) injection. User-supplied password values are interpolated directly into a DQL `checkpwd()` query via `fmt.Sprintf` without any escaping or parameterization. An attacker can inject a password containing a double-quote character to break out of the DQL string literal and append arbitrary DQL query blocks. Version 25.3.4 patches the issue.
AI Analysis
Technical Summary
Dgraph, an open source distributed GraphQL database, has a DQL injection vulnerability (CWE-943) in the checkUserPassword query prior to version 25.3.4. The vulnerability arises because password values are inserted into a DQL checkpwd() query using fmt.Sprintf without escaping or parameterization, enabling attackers to break out of the intended string context and append arbitrary DQL commands. This can lead to unauthorized data exposure due to improper neutralization of special elements in query logic. The vulnerability has a CVSS 3.1 base score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges or user interaction required, and impacts confidentiality but not integrity or availability. The issue is resolved in version 25.3.4.
Potential Impact
An attacker can exploit this vulnerability to perform DQL injection by crafting a password input containing special characters to manipulate the query logic. This can result in unauthorized disclosure of sensitive data from the database. The vulnerability affects confidentiality but does not impact integrity or availability. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Upgrade Dgraph to version 25.3.4 or later, where this vulnerability is patched. Since the vendor advisory confirms the fix in 25.3.4, applying this official update is the recommended remediation. Patch status is confirmed by the vendor advisory stating the issue is fixed in 25.3.4.
CVE-2026-44840: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in dgraph-io dgraph
Description
Dgraph is an open source distributed GraphQL database. Prior to version 25.3.4, the `checkUserPassword` GraphQL query in Dgraph is vulnerable to DQL (Dgraph Query Language) injection. User-supplied password values are interpolated directly into a DQL `checkpwd()` query via `fmt.Sprintf` without any escaping or parameterization. An attacker can inject a password containing a double-quote character to break out of the DQL string literal and append arbitrary DQL query blocks. Version 25.3.4 patches the issue.
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, has a DQL injection vulnerability (CWE-943) in the checkUserPassword query prior to version 25.3.4. The vulnerability arises because password values are inserted into a DQL checkpwd() query using fmt.Sprintf without escaping or parameterization, enabling attackers to break out of the intended string context and append arbitrary DQL commands. This can lead to unauthorized data exposure due to improper neutralization of special elements in query logic. The vulnerability has a CVSS 3.1 base score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges or user interaction required, and impacts confidentiality but not integrity or availability. The issue is resolved in version 25.3.4.
Potential Impact
An attacker can exploit this vulnerability to perform DQL injection by crafting a password input containing special characters to manipulate the query logic. This can result in unauthorized disclosure of sensitive data from the database. The vulnerability affects confidentiality but does not impact integrity or availability. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Upgrade Dgraph to version 25.3.4 or later, where this vulnerability is patched. Since the vendor advisory confirms the fix in 25.3.4, applying this official update is the recommended remediation. Patch status is confirmed by the vendor advisory stating the issue is fixed 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/16/2026, 10:10:14 UTC
Last updated: 08/23/2026, 03:31:36 UTC
Views: 68
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.