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. 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.goexpvarConf = expvar.NewMap("dgraph_config")expvar package automatically registers /debug/varsexpvar publishes:cmdline = os.Argsmemstats = runtime.MemstatsAlpha's HTTP handler explicitly blocks only the old CVE path:
dgraph/cmd/alpha/run.goif r.URL.Path == "/debug/pprof/cmdline" and returns 404http.DefaultServeMux.ServeHTTP(w, r)Admin endpoints still trust the leaked token:
dgraph/cmd/alpha/admin.goX-Dgraph-AuthTokenworker.Config.AuthToken1. Send an unauthenticated request to Alpha:
```http
GET /debug/vars HTTP/1.1
Host: target:8080
```
2. Parse the JSON response and read the cmdline field.
3. Extract the admin token from the startup arguments, for example:
```text
--security token=debug-vars-secret;
```
4. Replay the token to an admin-only endpoint:
```http
GET /admin/config/cache_mb HTTP/1.1
Host: target:8080
X-Dgraph-AuthToken: debug-vars-secret
```
5. The request is accepted as an authorized admin request.
This was reproduced against dgraph/dgraph:v25.3.2 in Docker.
Observed behavior:
/debug/vars leaked the configured tokenX-Dgraph-AuthToken successfully accessed /admin/config/cache_mb```text
4096
```
It was verified that the old CVE path appears specifically patched in the same version:
/debug/pprof/cmdline returned 404 Not Found/debug/pprof/ remained reachableUnauthenticated attackers can obtain the Alpha admin token and gain unauthorized administrative access.
This enables privileged admin operations such as:
X-Dgraph-AuthTokenIn deployments where the Alpha HTTP port is reachable by untrusted parties, this is a practical authentication bypass to admin functionality.
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE-2026-41492 is classified as CWE-200: Exposure of Sensitive Information. Information that should stay internal is disclosed to someone who is not authorised to see it.
CVE-2026-41492 is recorded against 5 packages.
Published on 24 April 2026 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. Record sourced from NVD.
github.com
github.com
github.com
dgraph has other advisories on record. If you are patching this one, these are worth checking on the same host:
These advisories are the same class of weakness (CWE-200: Exposure of Sensitive Information) in other software:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| dgraph | — | 25.3.3 |
| github.com/dgraph-io/dgraph | — | — |
| github.com/dgraph-io/dgraph/v24 | — | — |
| github.com/dgraph-io/dgraph/v25 | — | — |
| github.com/hypermodeinc/dgraph/v24 | — | — |
References
Similar Threats
Exploit Protection
CVE-2026-41492 carries CVSS 9.8 Critical rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2026-41492 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.