Dgraph Unauthenticated Credential Disclosure Vulnerability in Debug Endpoint Allowing Unauthorized Admin Access

Vulnerability

A vulnerability exists in Dgraph, an open-source distributed GraphQL database, in versions through 25.3.1. The issue is an unauthenticated credential disclosure, where the /debug/pprof/cmdline endpoint is accessible without authentication. This endpoint exposes the full process command line, including the admin token set via the --security 'token=...' startup flag. An attacker can retrieve this token and use it in the X-Dgraph-AuthToken header to gain unauthorized access to admin-only endpoints, such as /admin/config/cache_mb. This bypasses the token validation in the adminAuthHandler, allowing unauthorized privileged administrative access. The vulnerability is present in any deployment where the Alpha HTTP port is accessible to untrusted parties.

Impact

Exploitation of this vulnerability leads to unauthorized privileged administrative access in Dgraph Alpha, allowing attackers to make configuration changes and control operational functions via admin endpoints.

Reproduction

To reproduce this vulnerability, start Dgraph Alpha with an admin token configured through the --security startup flag. Ensure that the Alpha HTTP port is reachable by untrusted traffic and that the /debug/pprof/cmdline endpoint is exposed without authentication. After verifying that the admin token is required for accessing certain admin endpoints, the token can be extracted from the debug endpoint and reused in the X-Dgraph-AuthToken header to gain unauthorized access to the admin functionality.

Remediation

Users should upgrade to Dgraph version 25.3.2, where this vulnerability has been fixed.

Added: Apr 15, 2026, 10:10 PM
Updated: Apr 15, 2026, 10:10 PM

Vulnerability Rating

Custom Algorithm
spread
2.6
impact
5.0
exploitability
9.1
remediation
7.7
relevance
6.0
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.