CVE-2026-41328

Source
https://cve.org/CVERecord?id=CVE-2026-41328
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41328.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-41328
Aliases
Downstream
Related
Published
2026-04-24T18:25:43.894Z
Modified
2026-07-31T18:31:02.963536882Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field
Details

Dgraph is an open source distributed GraphQL database. Prior to 25.3.3, a vulnerability has been found in Dgraph that gives an unauthenticated attacker full read access to every piece of data in the database. This affects Dgraph's default configuration where ACL is not enabled. The attack requires two HTTP POSTs to port 8080. The first sets up a schema predicate with @unique @index(exact) @lang via /alter (also unauthenticated in default config). The second sends a crafted JSON mutation to /mutate?commitNow=true where a JSON key contains the predicate name followed by @ and a DQL injection payload in the language tag position. The injection exploits the addQueryIfUnique function in edgraph/server.go, which constructs DQL queries using fmt.Sprintf with unsanitized predicateName that includes the raw pred.Lang value. The Lang field is extracted from JSON mutation keys by x.PredicateLang(), which splits on @, and is never validated by any function in the codebase. The attacker injects a closing parenthesis to escape the eq() function, adds an arbitrary named query block, and uses a # comment to neutralize trailing template syntax. The injected query executes server-side and its results are returned in the HTTP response. This vulnerability is fixed in 25.3.3.

Database specific
{
    "cwe_ids": [
        "CWE-943"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41328.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/dgraph-io/dgraph

Affected ranges

Type
GIT
Repo
https://github.com/dgraph-io/dgraph
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:dgraph:dgraph:*:*:*:*:*:go:*:*",
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "25.3.3"
        }
    ]
}

Affected versions

Other
nightly
release/v20.*
release/v20.11-rc1
v0.*
v0.3
v0.4.0
v0.4.1
v0.4.2
v0.8.0
v0.8.1
v0.8.3
v0.9.0
v0.9.4
v1.*
v1.0.0
v1.0.1
v1.0.10
v1.0.10-rc1
v1.0.11
v1.0.11-rc1
v1.0.11-rc2
v1.0.11-rc3
v1.0.11-rc4
v1.0.12-rc1
v1.0.12-rc2
v1.0.12-rc3
v1.0.2
v1.0.3
v1.0.4
v1.0.5
v1.0.7
v1.0.7-rc2
v1.0.7-rc3
v1.0.7-rc4
v1.0.7a
v1.0.8
v1.0.8-rc1
v1.0.8-rc2
v1.0.9
v1.0.9-rc1
v1.0.9-rc2
v1.0.9-rc3
v1.0.9-rc4
v1.0.9-rc5
v1.1.0
v1.1.0-rc2
v1.1.0-rc3
v1.1.1
v1.1.1-rc1
v1.1.1-rc2
v1.2.0-rc1
v2.*
v2.0.0-beta1
v2.0.0-rc1
v20.*
v20.11.0-rc1
v21.*
v21.03.0
v21.03.1
v21.03.2
v22.*
v22.0.0
v22.0.0-RC1-20221003
v22.0.2
v23.*
v23.0.0
v23.0.0-beta1
v23.0.0-rc1
v23.0.1
v23.1.0
v23.1.0-rc1
v23.1.0-rc2
v24.*
v24.0.0
v24.0.0-alpha
v24.0.0-alpha2
v24.0.0-alpha3
v24.0.0-rc1
v24.0.1
v24.0.2
v24.0.2-rc1
v25.*
v25.0.0
v25.0.0-preview1
v25.0.0-preview2
v25.0.0-preview3
v25.0.0-preview4
v25.0.0-preview5
v25.0.0-preview6
v25.1.0
v25.1.0-preview1
v25.2.0
v25.3.0
v25.3.1
v25.3.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41328.json"