CVE-2026-40173: Dgraph Info Disclosure

CVE-2026-40173

NVDCVSS scored by security-advisories@github.com

Vulnerability Summary

Dgraph is an open source distributed GraphQL database. Versions 25.3.1 and prior contain an unauthenticated credential disclosure vulnerability where the /debug/pprof/cmdline endpoint is registered on the default mux and reachable without authentication, exposing the full process command line including the admin token configured via the --security "token=..." startup flag. An attacker can retrieve the leaked token and reuse it in the X-Dgraph-AuthToken header to gain unauthorized access to admin-only endpoints such as /admin/config/cache_mb, bypassing the adminAuthHandler token validation. This enables unauthorized privileged administrative access including configuration changes and operational control actions in any deployment where the Alpha HTTP port is reachable by untrusted parties. This issue has been fixed in version 25.3.2.
Severity Level
CRITICAL(9.4)
Published Date
Apr 15, 2026
Last Modified
Apr 25, 2026
Exploitation Status
Public exploit available
EPSS Score (30-Day)
0.06%Probability
Root Weakness (CWE)
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
The product inserts sensitive information into debugging code, which could expose this information if the debugging code is not disabled in production.
The product transmits or stores authentication credentials using an insecure method that is susceptible to unauthorized interception or retrieval.
CVSS v3.1 Base Metrics — Score 9.4 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityLow

Affected & Patched Versions

Affected Versions
  • Dgraph < 25.3.2
Patched Versions
  • Dgraph 25.3.2

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run Dgraph and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Apr 15, 2026Published
  • Apr 25, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Dgraph CVEsYou are reading CVE-2026-40173. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 5, 2026 08:11 UTC