CVE-2026-142181: Dgraph 25.4.0 through 25.5.1 Zero Admin Token Disclosure via Debug Endpoints
Dgraph 25.4.0 through 25.5.1 contains an information disclosure vulnerability that allows unauthenticated remote attackers to read the Zero admin token by querying unsanitized /debug/pprof/cmdline and /debug/vars handlers. Attackers can extract the --security token from the exposed command line and call protected endpoints such as /removeNode, /moveTablet, /assign, and /state to disrupt or reconfigure the cluster.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to unauthenticated attack?
Dgraph versions 25.4.0 through 25.5.1 are exposed when the Zero debug handlers /debug/pprof/cmdline or /debug/vars are reachable by an unauthenticated remote attacker. The provided information does not specify whether these handlers are exposed in the default network configuration.
What does an attacker need to exploit this issue?
An attacker needs only network access to an exposed affected debug endpoint; no credentials or user interaction are required. They can read the Zero process command line and extract the value supplied to --security token.
What could indicate that a cluster has already been targeted?
Review access logs for unauthenticated requests to /debug/pprof/cmdline and /debug/vars. Also investigate calls to protected Zero endpoints including /removeNode, /moveTablet, /assign, and /state, particularly if they follow requests to the debug handlers.
What can be done if patching is not immediately possible?
Restrict unauthenticated network access to the Zero debug endpoints, especially /debug/pprof/cmdline and /debug/vars. If exposure is suspected, treat the Zero admin token as disclosed and investigate use of protected cluster-management endpoints.