Vulnerabilities in pkg:golang/github.com/dgraph-io/dgraph/v25

PACKAGE
Advisory Identifier: GHSA-qj98-gp63-54xj
Advisory Summary

CVE-2026-102748 is a CRITICAL denial of service vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Dgraph libraries in the Go ecosystem. The issue involves zero unauthenticated http admin removenode denial of service. Remediation is available by upgrading affected packages to version 25.4.0.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/dgraph-io/dgraph/v25

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/dgraph-io/dgraph/v25. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-qj98-gp63-54xj CVE-2026-102748 CRITICAL Dgraph: Zero Unauthenticated HTTP Admin removeNode Denial of Service
GHSA-rrwh-6jrq-wp5v CVE-2026-54061 CRITICAL Dgraph Alpha group stores can be replaced via unauthenticated external snapshot import
GHSA-x92x-px7w-4gx4 CVE-2026-41328 CRITICAL Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field
GHSA-q2m9-6jp9-c6mc CVE-2026-44840 HIGH Dgraph Vulnerable to DQL Injection via checkUserPassword GraphQL Query
GHSA-vvf7-6rmr-m29q CVE-2026-41492 CRITICAL Dgraph: Unauthenticated Admin Token Disclosure Leading to Authentication Bypass via /debug/vars
GHSA-mrxx-39g5-ph77 CVE-2026-41327 CRITICAL Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in Upsert Condition Field
GHSA-95mq-xwj4-r47p CVE-2026-40173 CRITICAL Dgraph: Unauthenticated /debug/pprof/cmdline discloses admin auth token, enabling unauthorized access to protected Alpha admin endpoints
GHSA-p5rh-vmhp-gvcw CVE-2026-34976 CRITICAL Dgraph: Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization

CVE-2026-102748 at a Glance

CVE Identifier CVE-2026-102748
GHSA Identifier GHSA-qj98-gp63-54xj
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Dgraph
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-102748

To remediate this vulnerability, upgrade all affected Dgraph dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/dgraph-io/dgraph/v25 fixed: 25.4.0
Upgrade github.com/dgraph-io/dgraph/v25 to 25.4.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/dgraph-io/dgraph/v25

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-102748, inspect your project dependencies for Dgraph:

inspect dependencies for github.com/dgraph-io/dgraph/v25

Analyze the terminal output to locate any version of Dgraph in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 25.4.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Dgraph, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Dgraph `v25.3.8` exposes a Zero HTTP administrative surface that is unauthenticated when port `6080` is reachable. The exposed routes include: - `/state` - `/assign` - `/removeNode` - `/moveTablet` An unauthenticated request to `/removeNode?id=1&group=0` on a single-node standalone deployment breaks the Zero control plane and leaves Alpha repeatedly failing to reconnect to `localhost:5080`. ### Details The issue exists because Zero administrative HTTP endpoints are registered directly without any authentication or IP-whitelist wrapper. Relevant code paths: - `worker/server_state.go:41` - `dgraph/cmd/zero/run.go:295-301` - `dgraph/cmd/zero/http.go:106-129` - `dgraph/cmd/zero/zero.go:475-477` The relevant behavior is: - `disable-admin-http=false` by default - `/removeNode` accepts attacker-controlled `id` and `group` - `removeNode` forwards those directly into `Server.RemoveNode` - for `group=0`, `Server.RemoveNode` immediately calls `ProposePeerRemoval` This means a remote unauthenticated caller can directly trigger destructive membership operations if `6080` is exposed. ### PoC ### Read state without authentication ```bash curl -i http://127.0.0.1:6080/state ``` Observed response included: - Zero node `id=1` - `groupId=0` - `leader=true` - cluster topology and tablet state <img width="1878" height="810" alt="图片" src="https://github.com/user-attachments/assets/c6a0001c-bcf7-45b6-a301-481f918be98a" /> ### Write-capable route without authentication ```bash curl -i 'http://127.0.0.1:6080/assign?what=nsids&num=1' ``` Observed response: ```text HTTP/1.1 200 OK ... {"startId":"1", "endId":"1", "readOnly":"0"} ``` This confirms the admin plane is not merely informational. <img width="1877" height="805" alt="图片" src="https://github.com/user-attachments/assets/caf60927-83ba-495d-8c55-e48343b8a2c7" /> ### Destructive unauthenticated removeNode ```bash curl -i 'http://127.0.0.1:6080/removeNode?id=1&group=0' ``` Observed result: ```text curl: (52) Empty reply from server ``` <img width="1877" height="806" alt="图片" src="https://github.com/user-attachments/assets/a837c385-1c2d-42b6-a5c9-0d93a974ff4e" /> Immediately afterward: ```bash curl -i http://127.0.0.1:6080/health ``` Observed result: ```text curl: (56) Recv failure: Connection reset by peer ``` <img width="786" height="47" alt="图片" src="https://github.com/user-attachments/assets/bd5e977d-d046-4626-b3df-155b141564fa" /> Alpha health was still locally reachable, but Alpha logs began repeatedly reporting: ```text dial tcp [::1]:5080: connect: connection refused ``` <img width="1688" height="197" alt="图片" src="https://github.com/user-attachments/assets/8ae3bb84-65bc-4951-ad32-5e1c3231c894" /> This confirms the request reached the destructive path and disrupted the Zero control plane. ### Impact Any deployment that exposes Zero HTTP on `6080` exposes destructive unauthenticated administrative capabilities. An attacker can: - read cluster topology and control-plane metadata - allocate IDs and timestamps - invoke destructive membership actions - disrupt the Zero control plane - indirectly destabilize Alpha nodes that depend on Zero connectivity This is a high-value unauthenticated administrative exposure and, in the reproduced case, a practical denial of service against the control plane.

CVE-2026-102748 Affected Dgraph Versions

1 component(s)
Fixed Versions:
25.4.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/dgraph-io/dgraph/v25
Go
< 25.4.0
25.4.0

References

Frequently Asked Questions

What is CVE-2026-102748?
CVE-2026-102748 is a security vulnerability in Dgraph involving Zero Unauthenticated HTTP Admin removeNode Denial of Service under CWE-306: Missing Authentication for Critical Function.
Which Dgraph versions are affected?
Affected versions include releases prior to 25.4.0 across affected packages: github.com/dgraph-io/dgraph/v25.
What version fixes CVE-2026-102748?
Upgrading to 25.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/dgraph-io/dgraph/v25 affected?
Yes, github.com/dgraph-io/dgraph/v25 is affected in releases prior to 25.4.0. Upgrade your dependency to 25.4.0 or later.
What CWE is associated with CVE-2026-102748?
CVE-2026-102748 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check Go dependencies for CVE-2026-102748?
Run the dependency tree command: 'inspect dependencies for github.com/dgraph-io/dgraph/v25'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qj98-gp63-54xj",
  "modified" : "2026-10-15T20:17:22Z",
  "published" : "2026-10-15T20:17:22Z",
  "aliases" : [ "CVE-2026-102748" ],
  "summary" : "Dgraph: Zero Unauthenticated HTTP Admin removeNode Denial of Service",
  "details" : "### Summary\n\nDgraph `v25.3.8` exposes a Zero HTTP administrative surface that is unauthenticated when port `6080` is reachable.\n\nThe exposed routes include:\n\n- `/state`\n- `/assign`\n- `/removeNode`\n- `/moveTablet`\n\nAn unauthenticated request to `/removeNode?id=1&group=0` on a single-node standalone deployment breaks the Zero control plane and leaves Alpha repeatedly failing to reconnect to `localhost:5080`.\n\n### Details\n\nThe issue exists because Zero administrative HTTP endpoints are registered directly without any authentication or IP-whitelist wrapper.\n\nRelevant code paths:\n\n- `worker/server_state.go:41`\n- `dgraph/cmd/zero/run.go:295-301`\n- `dgraph/cmd/zero/http.go:106-129`\n- `dgraph/cmd/zero/zero.go:475-477`\n\nThe relevant behavior is:\n\n- `disable-admin-http=false` by default\n- `/removeNode` accepts attacker-controlled `id` and `group`\n- `removeNode` forwards those directly into `Server.RemoveNode`\n- for `group=0`, `Server.RemoveNode` immediately calls `ProposePeerRemoval`\n\nThis means a remote unauthenticated caller can directly trigger destructive membership operations if `6080` is exposed.\n\n### PoC\n\n### Read state without authentication\n\n```bash\ncurl -i http://127.0.0.1:6080/state\n```\n\nObserved response included:\n\n- Zero node `id=1`\n- `groupId=0`\n- `leader=true`\n- cluster topology and tablet state\n\n<img width=\"1878\" height=\"810\" alt=\"图片\" src=\"https://github.com/user-attachments/assets/c6a0001c-bcf7-45b6-a301-481f918be98a\" />\n\n### Write-capable route without authentication\n\n```bash\ncurl -i 'http://127.0.0.1:6080/assign?what=nsids&num=1'\n```\n\nObserved response:\n\n```text\nHTTP/1.1 200 OK\n...\n{\"startId\":\"1\", \"endId\":\"1\", \"readOnly\":\"0\"}\n```\n\nThis confirms the admin plane is not merely informational.\n\n<img width=\"1877\" height=\"805\" alt=\"图片\" src=\"https://github.com/user-attachments/assets/caf60927-83ba-495d-8c55-e48343b8a2c7\" />\n\n### Destructive unauthenticated removeNode\n\n```bash\ncurl -i 'http://127.0.0.1:6080/removeNode?id=1&group=0'\n```\n\nObserved result:\n\n```text\ncurl: (52) Empty reply from server\n```\n\n<img width=\"1877\" height=\"806\" alt=\"图片\" src=\"https://github.com/user-attachments/assets/a837c385-1c2d-42b6-a5c9-0d93a974ff4e\" />\n\nImmediately afterward:\n\n```bash\ncurl -i http://127.0.0.1:6080/health\n```\n\nObserved result:\n\n```text\ncurl: (56) Recv failure: Connection reset by peer\n```\n\n<img width=\"786\" height=\"47\" alt=\"图片\" src=\"https://github.com/user-attachments/assets/bd5e977d-d046-4626-b3df-155b141564fa\" />\n\nAlpha health was still locally reachable, but Alpha logs began repeatedly reporting:\n\n```text\ndial tcp [::1]:5080: connect: connection refused\n```\n\n<img width=\"1688\" height=\"197\" alt=\"图片\" src=\"https://github.com/user-attachments/assets/8ae3bb84-65bc-4951-ad32-5e1c3231c894\" />\n\nThis confirms the request reached the destructive path and disrupted the Zero control plane.\n\n### Impact\n\nAny deployment that exposes Zero HTTP on `6080` exposes destructive unauthenticated administrative capabilities.\n\nAn attacker can:\n\n- read cluster topology and control-plane metadata\n- allocate IDs and timestamps\n- invoke destructive membership actions\n- disrupt the Zero control plane\n- indirectly destabilize Alpha nodes that depend on Zero connectivity\n\nThis is a high-value unauthenticated administrative exposure and, in the reproduced case, a practical denial of service against the control plane.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/dgraph-io/dgraph/v25"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "25.4.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 25.3.8"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dgraph-io/dgraph/security/advisories/GHSA-qj98-gp63-54xj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-102748"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dgraph-io/dgraph/commit/c32f6041387fa631dbc057e265b71aec3384ead1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dgraph-io/dgraph"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dgraph-io/dgraph/releases/tag/v25.4.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306", "CWE-862" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-15T20:17:22Z",
    "nvd_published_at" : "2026-10-14T19:17:05Z"
  }
}