Black Friday60% off BLACKFRIDAY2026
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Nov 24, 2026

CVE-2026-41327 Scanner

CVE-2026-41327 Scanner - Code Injection vulnerability in Dgraph

Est. Time~10 seconds
Scan TypeGroup Scan
Targetsdomain, subdomain, ipv4
CostFree
3
Times Used
continuous scan runs
4.6k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
9.1
CVSScritical
Exploitable remotely over the internet · no authentication required.
Description

Dgraph is an open source distributed GraphQL database. Prior to 25.3.3, a vulnerability has been found in Dgraph that gives an unauthenticated attacker full read access to every piece of data in the database. This affects Dgraph's default configuration where ACL is not enabled. The attack is a single HTTP POST to /mutate?commitNow=true containing a crafted cond field in an upsert mutation. The cond value is concatenated directly into a DQL query string via strings.Builder.WriteString after only a cosmetic strings.Replace transformation. No escaping, parameterization, or structural validation is applied. An attacker injects an additional DQL query block into the cond string, which the DQL parser accepts as a syntactically valid named query block. The injected query executes server-side and its results are returned in the HTTP response. This vulnerability is fixed in 25.3.3.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
dgraphby dgraph-io
< 25.3.3
Updated Nov 24, 2026View on NVD →
Detail

Dgraph is a highly scalable, native graph database that is used extensively in environments that require fast and reliable processing of vast quantities of data. It is utilized by developers, data scientists, and businesses to manage graph-based data structures. Dgraph can handle complex queries with optimal performance, making it ideal for applications that demand rapid data retrieval and analysis. This database is particularly popular in sectors like e-commerce, social networks, and data-driven enterprise solutions. It offers an easy-to-use interface for creating data models and executing graph queries. Dgraph is favored for its ability to deliver precise results and streamline operations involving interconnected data points.

The Code Injection vulnerability in Dgraph arises from the inadequate validation of upsert mutation queries. This issue allows malicious actors to introduce unauthorized queries into the system. The vulnerability can be exploited when Access Control Lists (ACLs) are disabled, which is the default setting in Dgraph. By appending a query block, attackers can manipulate database queries to expose database contents. Such vulnerabilities are concerning due to the potential for unauthorized data access. Immediate attention to upgrading and securing Dgraph instances is essential to counteract these threats.

The vulnerability is centered around the mutation response generated through DQL queries. Attackers can slip in unapproved query blocks via the 'cond' field of upsert and mutation commands sent to the '/mutate' endpoint. Due to this oversight, the characteristic safeguards provided via conditional upsert logic are bypassed. This technical fault emerges because DQL lack structural validation against potential manipulations. Subsequently, unauthorized parties gain access to manipulate and read vast quantities of stored data. Mitigating this requires stricter validation checks and configurations that enforce authentication for query submissions.

The potential effects of this vulnerability, if exploited, include exposing all database nodes and predicates within Dgraph to unauthorized users. This can lead to credentials and personal data being compromised. Attackers could leverage this information to further infiltrate systems or perform lateral attacks. The integrity of applications dependent on Dgraph could be severely jeopardized, leading to trust issues with data integrity. Subsequent unauthorized transactions and the scavenging of sensitive information could lead to significant institutional damage. In the worst-case scenario, the vulnerability could facilitate widespread data corruption or loss.

REFERENCES

Solution Advice
  • Upgrade Dgraph to v25.3.3 or later, or v24.1.8 or later to mitigate the vulnerability.
  • Ensure that ACLs are configured and enabled to prevent unauthorized access.
  • Regularly monitor and audit database configurations and access permissions.
  • Perform regular security assessments and updates to maintain database integrity.
  • Restrict access to Dgraph's Alpha HTTP API, limiting it to trusted networks.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.