CVE-2026-41328: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in dgraph-io dgraph
A critical vulnerability (CVE-2026-41328) in dgraph-io dgraph prior to version 25. 3. 3 allows an unauthenticated attacker to gain full read access to all data in the database when ACL is not enabled. The attack exploits improper neutralization of special elements in data query logic (CWE-943) via crafted HTTP POST requests that inject malicious Dgraph Query Language (DQL) payloads. This vulnerability is fixed in version 25. 3. 3.
AI Analysis
Technical Summary
Dgraph versions before 25.3.3 have a vulnerability due to improper neutralization of special elements in data query logic (CWE-943). In the default configuration without ACL enabled, an unauthenticated attacker can perform two HTTP POST requests to port 8080: first to set up a schema predicate with specific annotations via the /alter endpoint, and second to send a crafted JSON mutation to /mutate?commitNow=true. The vulnerability arises because the addQueryIfUnique function in edgraph/server.go constructs DQL queries using fmt.Sprintf with an unsanitized predicateName that includes a language tag extracted from JSON keys without validation. This allows injection of arbitrary DQL code, leading to unauthorized full read access to the database. The issue is resolved in dgraph version 25.3.3.
Potential Impact
An unauthenticated attacker can exploit this vulnerability to gain full read access to all data stored in the affected Dgraph database instances running default configurations without ACL enabled. This compromises confidentiality but does not affect integrity or availability. The vulnerability has a CVSS 3.1 base score of 9.1 (critical), reflecting its ease of exploitation over the network without privileges and its high impact on confidentiality.
Mitigation Recommendations
This vulnerability is fixed in dgraph version 25.3.3. Users should upgrade to version 25.3.3 or later to remediate this issue. If upgrading immediately is not possible, enabling Access Control Lists (ACL) in the configuration can mitigate the risk by preventing unauthenticated access. Patch status is not explicitly stated in vendor advisory content, but the fix is included in version 25.3.3. Users should consult the official dgraph release notes and advisories for detailed remediation instructions.
CVE-2026-41328: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in dgraph-io dgraph
Description
A critical vulnerability (CVE-2026-41328) in dgraph-io dgraph prior to version 25. 3. 3 allows an unauthenticated attacker to gain full read access to all data in the database when ACL is not enabled. The attack exploits improper neutralization of special elements in data query logic (CWE-943) via crafted HTTP POST requests that inject malicious Dgraph Query Language (DQL) payloads. This vulnerability is fixed in version 25. 3. 3.
CVSS v3.1
Score 9.1critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Dgraph versions before 25.3.3 have a vulnerability due to improper neutralization of special elements in data query logic (CWE-943). In the default configuration without ACL enabled, an unauthenticated attacker can perform two HTTP POST requests to port 8080: first to set up a schema predicate with specific annotations via the /alter endpoint, and second to send a crafted JSON mutation to /mutate?commitNow=true. The vulnerability arises because the addQueryIfUnique function in edgraph/server.go constructs DQL queries using fmt.Sprintf with an unsanitized predicateName that includes a language tag extracted from JSON keys without validation. This allows injection of arbitrary DQL code, leading to unauthorized full read access to the database. The issue is resolved in dgraph version 25.3.3.
Potential Impact
An unauthenticated attacker can exploit this vulnerability to gain full read access to all data stored in the affected Dgraph database instances running default configurations without ACL enabled. This compromises confidentiality but does not affect integrity or availability. The vulnerability has a CVSS 3.1 base score of 9.1 (critical), reflecting its ease of exploitation over the network without privileges and its high impact on confidentiality.
Mitigation Recommendations
This vulnerability is fixed in dgraph version 25.3.3. Users should upgrade to version 25.3.3 or later to remediate this issue. If upgrading immediately is not possible, enabling Access Control Lists (ACL) in the configuration can mitigate the risk by preventing unauthenticated access. Patch status is not explicitly stated in vendor advisory content, but the fix is included in version 25.3.3. Users should consult the official dgraph release notes and advisories for detailed remediation instructions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-20T14:01:46.672Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ebb81d87115cfb68646f73
Added to database: 4/24/2026, 6:36:13 PM
Last enriched: 5/1/2026, 8:41:15 PM
Last updated: 6/9/2026, 2:52:52 PM
Views: 154
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.
External Links
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.