CVE-2026-63637

Dgraph: DQL Injection via unvalidated regexp filter argument in GraphQL query rewriter

Published Aug 6, 2026 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
Description
Dgraph is an open source distributed GraphQL database. Prior to 25.3.8, maybeQuoteArg in graphql/resolve/query_rewriter.go passes regexp filter strings into generated DQL without quoting or validating the /pattern/flags form, allowing crafted GraphQL query or mutation filters to inject DQL operators, disclose unintended nodes, or expand modification and deletion targets. This issue is fixed in version 25.3.8.

Analysis

AI-generated

Technical impact

An unvalidated regexp filter argument in the GraphQL query rewriter passes raw regular expression strings directly into generated DQL. This flaw permits attackers to inject additional DQL operators, potentially causing unintended data disclosure or expanding the scope of data modifications or deletions performed by a GraphQL query or mutation. The injection mechanism enables a client to retrieve or alter data that should not be accessible through normal filters, thereby compromising confidentiality and integrity.

Affected Systems

The vulnerability affects the open source distributed GraphQL database dgraph-io dgraph in all releases before version 25.3.8. The issue is fixed in 25.3.8 and subsequent releases.

Risk and Exploitability

The CVSS score of 8.6 classifies the fault as high severity, and the absence of an EPSS rating indicates no publicly known exploit trend at the time of analysis. The vulnerability is not listed in the CISA KEV catalog. By exploiting the exposed GraphQL endpoint, an attacker could craft a malicious query or mutation that includes a crafted regular expression filter, thereby injecting arbitrary DQL operators. The attack vector is inferred to be through any publicly or privately accessible GraphQL endpoint that accepts unvalidated filter arguments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade dgraph to version 25.3.8 or later
  • If upgrading immediately is not feasible, restrict access to the GraphQL API to trusted hosts or networks to limit exposure to the vulnerability
  • Validate or sanitize regular expression filter arguments on the client or server side to ensure that only allowed patterns are accepted

Generated by OpenCVE AI on August 7, 2026 at 00:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Dgraph
Dgraph dgraph
Vendors & Products Dgraph
Dgraph dgraph
Type Values Removed Values Added
Description Dgraph is an open source distributed GraphQL database. Prior to 25.3.8, maybeQuoteArg in graphql/resolve/query_rewriter.go passes regexp filter strings into generated DQL without quoting or validating the /pattern/flags form, allowing crafted GraphQL query or mutation filters to inject DQL operators, disclose unintended nodes, or expand modification and deletion targets. This issue is fixed in version 25.3.8.
Title Dgraph: DQL Injection via unvalidated regexp filter argument in GraphQL query rewriter
Weaknesses CWE-943
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L'}

Weaknesses
  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 7, 2026, 4:54 PM
Reserved
Jul 17, 2026, 2:11 PM
Status
Awaiting Analysis
Published
Aug 6, 2026, 10:18 PM
Modified
Oct 24, 2026, 4:10 PM