Loading advisory.
Loading advisory.
Dgraph: Unauthenticated Admin Token Disclosure Leading to Authentication Bypass via /debug/vars
Dgraph v25.3.2 still exposes the process command line through the unauthenticated /debug/vars endpoint on Alpha.
Published 2026-04-24 16:15 UTC · Modified 2026-09-10 03:51 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/dgraph-io/dgraph/v25 | Go | < 25.3.3 | 25.3.3 | go get github.com/dgraph-io/dgraph/v25@v25.3.3 |
| github.com/dgraph-io/dgraph/v24 | Go | <= 24.1.8 | No patch yet | No command until a fix exists. |
| github.com/dgraph-io/dgraph | Go | <= 1.2.8 all versions | No patch yet | No command until a fix exists. |
| github.com/hypermodeinc/dgraph/v24 | Go | < 24.1.9 | 24.1.9 | go get github.com/hypermodeinc/dgraph/v24@v24.1.9 |
Dgraph v25.3.2 still exposes the process command line through the unauthenticated /debug/vars endpoint on Alpha. Because the admin token is commonly supplied via the --security "token=..." startup flag, an unauthenticated attacker can retrieve that token and replay it in the X-Dgraph-AuthToken header to access admin-only endpoints.
This is a variant of the previously fixed /debug/pprof/cmdline issue, but the current fix is incomplete because it blocks only /debug/pprof/cmdline and still serves http.DefaultServeMux, which includes expvar's /debug/vars handler.
Alpha still exposes Go's default HTTP mux:
x/metrics.go
imports expvar
initializes Conf = expvar.NewMap("dgraph_config")
Go's expvar package automatically registers /debug/vars
expvar publishes:
cmdline = os.Args
memstats = runtime.Memstats
Alpha's HTTP handler explicitly blocks only the old CVE path:
dgraph/cmd/alpha/run.go
checks if r.URL.Path == "/debug/pprof/cmdline" and returns 404
otherwise falls through to http.DefaultServeMux.ServeHTTP(w, r)
Admin endpoints still trust the leaked token:
dgraph/cmd/alpha/admin.go
reads X-Dgraph-AuthToken
compares it to worker.Config.AuthToken
Send an unauthenticated request to Alpha:
GET /debug/vars HTTP/1.1
Host: target:8080Parse the JSON response and read the cmdline field.
Extract the admin token from the startup arguments, for example:
--security token=debug-vars-secret;Replay the token to an admin-only endpoint:
GET /admin/config/cache_mb HTTP/1.1
Host: target:8080
X-Dgraph-AuthToken: debug-vars-secretThe request is accepted as an authorized admin request.
This was reproduced against dgraph/dgraph:v25.3.2 in Docker.
Observed behavior:
unauthenticated /debug/vars leaked the configured token
replaying the leaked token in X-Dgraph-AuthToken successfully accessed /admin/config/cache_mb
response body was:
4096It was verified that the old CVE path appears specifically patched in the same version:
/debug/pprof/cmdline returned 404 Not Found
/debug/pprof/ remained reachable
Unauthenticated attackers can obtain the Alpha admin token and gain unauthorized administrative access.
This enables privileged admin operations such as:
reading privileged admin configuration
mutating admin configuration
performing operational control actions gated by X-Dgraph-AuthToken
In deployments where the Alpha HTTP port is reachable by untrusted parties, this is a practical authentication bypass to admin functionality.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.031 on 2026-11-24 to 0.025 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.031 | first score | v2026.06.15 |
| 2026-11-26 | 0.025 | 0.031 | v2026.06.15 |