Security Resilience

CVE-2026-40173

Info Disclosure in Dgraph ≤ 25.3.2

Published
15 April 2026
Modified
25 April 2026
Patch / advisory
CVSS Score v3.1 9.4
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
EPSS Score 0.0062 44th percentile
Risk Priority 69 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-40173 is a critical-severity Exposure of Sensitive Information to an Unauthorized Actor (CWE-200) vulnerability in Dgraph. Its CVSS base score is 9.4 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Unsecured Credentials (T1552); ranked at the 44th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-40173 is an unauthenticated credential disclosure vulnerability affecting Dgraph, an open source distributed GraphQL database, in versions 25.3.1 and prior. The issue stems from the /debug/pprof/cmdline endpoint being registered on the default mux and accessible without authentication, which exposes the full process command line. This includes the admin token configured via the --security "token=..." startup flag, enabling attackers to extract sensitive credentials directly.

Any unauthenticated attacker with network access to the Dgraph Alpha HTTP port can exploit this vulnerability. By querying the exposed endpoint, they retrieve the leaked admin token and reuse it in the X-Dgraph-AuthToken header to bypass the adminAuthHandler validation. This grants unauthorized access to admin-only endpoints, such as /admin/config/cache_mb, allowing privileged administrative actions like configuration changes and operational control in deployments exposed to untrusted parties. The CVSS v3.1 base score is 9.4 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L), with associated CWEs 200 (Exposure of Sensitive Information), 215 (Improper Handling of Credentials), and 522 (Insufficiently Protected Credentials).

The vulnerability has been fixed in Dgraph version 25.3.2, as detailed in the release notes at https://github.com/dgraph-io/dgraph/releases/tag/v25.3.2 and the security advisory at https://github.com/dgraph-io/dgraph/security/advisories/GHSA-95mq-xwj4-r47p. Security practitioners should upgrade to the patched version and review exposures of the Alpha HTTP port to mitigate risks.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
T1552.001 Credentials In Files Credential Access
Adversaries may search local file systems and remote file shares for files containing insecurely stored credentials.
T1589 Gather Victim Identity Information Reconnaissance
Adversaries may gather information about the victim's identity that can be used during targeting.
T1005 Data from Local System Collection
Adversaries may search local system sources, such as file systems, configuration files, local databases, virtual machine files, or process memory, to find files of interest and sensitive data prior to Exfiltration.
T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
T1589.001 Credentials Reconnaissance
Adversaries may gather credentials that can be used during targeting.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-41492Same product: Dgraph Dgraph
CVE-2025-12616Shared CWE-200, CWE-215
CVE-2023-0836Shared CWE-200
CVE-2026-121971Shared CWE-200, CWE-522
CVE-2026-113652Shared CWE-200, CWE-522
CVE-2026-127046Shared CWE-200, CWE-522
CVE-2026-50017Shared CWE-200, CWE-522
CVE-2025-13758Shared CWE-200, CWE-522
CVE-2026-125329Shared CWE-200, CWE-522
CVE-2026-96626Shared CWE-200, CWE-522

Affected Assets

dgraph
dgraph
≤ 25.3.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V13.4.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Access enforcement directly stops unauthorized actors from obtaining sensitive information.

Information flow enforcement structurally prevents sensitive data from reaching unauthorized recipients.

Protection of information at rest prevents unauthorized exposure of stored sensitive data.

Transmission confidentiality mechanisms stop exposure of sensitive data on the wire.

Least privilege reduces the set of actors who can reach sensitive information.

Least functionality directly prohibits enabling unnecessary debug features that would expose the inserted sensitive data.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prevent developers from embedding sensitive information inside debugging statements or code paths.

PR.DS-10 partial match
blocks

Explicitly calls for removing confidential data from processes, logs, and memory dumps that debug code commonly exposes.

PR.PS-01 partial match
blocks

Hardened configuration baselines and deployment checks can ensure debug features and associated data are disabled in production.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Penetration testing and vulnerability scanning are performed to discover unintended exposure of sensitive data resulting from misconfigurations or coding errors.

blocks

Restricting anonymous or unknown access and encrypting high-value information limits the exposure of sensitive data that would otherwise be obtainable by unauthorized actors.

blocks

By requiring removal or masking of sensitive operational data before it enters test environments, the control sharply reduces the chance that such data will be exposed to unauthorized actors who have access to those environments.

prevents

Training makes developers aware that debug code should not carry sensitive information and should be disabled in production, so a minority of instances are avoided; the remainder is the fallibility of human practice and developers who never receive or do not retain the specific guidance.

A.8.11 Data masking partial match
blocks

Data masking hides sensitive data from unauthorized viewers, blocking exploitation of the exposure for masked data, but it only covers data that is explicitly masked and does not address exposures from error messages, debug logs, or indirect information leaks.

prevents

CWE-215 is introduced at implementation when a developer writes debug code containing sensitive information; A.8.19 governs what is installed on operational systems, not what is written in source, so it does not prevent the weakness from coming into existence.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-200, a class-level weakness. Rules are authored against its narrower children: CWE-213, CWE-359, CWE-497, CWE-538, CWE-1295.
  • No fine-grained STIG row for CWE-522, a class-level weakness. Rules are authored against its narrower children: CWE-260, CWE-523.

References