GO-2026-5749

Source
https://pkg.go.dev/vuln/GO-2026-5749
Import Source
https://vuln.go.dev/ID/GO-2026-5749.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-5749
Aliases
Published
2026-06-25T22:34:41Z
Modified
2026-07-23T17:45:22.515915133Z
Summary
DQL injection via unsanitized NQuad Lang field in github.com/dgraph-io/dgraph
Details

A vulnerability in Dgraph allows an unauthenticated attacker full read access to data in the database when ACL is not enabled.

The injection exploits the addQueryIfUnique function, which constructs DQL queries using fmt.Sprintf with an unsanitized predicate name that includes the raw Lang value from a JSON mutation key. An attacker can escape the function and inject arbitrary named query blocks, which execute server-side and return results in the HTTP response.

Database specific
{
    "url": "https://pkg.go.dev/vuln/GO-2026-5749",
    "review_status": "REVIEWED"
}
References

Affected packages

Go / github.com/dgraph-io/dgraph

Package

Name
github.com/dgraph-io/dgraph
View open source insights on deps.dev
Purl
pkg:golang/github.com/dgraph-io/dgraph

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/dgraph-io/dgraph"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5749.json"

Go / github.com/dgraph-io/dgraph/v25

Package

Name
github.com/dgraph-io/dgraph/v25
View open source insights on deps.dev
Purl
pkg:golang/github.com/dgraph-io/dgraph/v25

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
25.3.3

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/dgraph-io/dgraph/v25"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5749.json"

Go / github.com/hypermodeinc/dgraph/v24

Package

Name
github.com/hypermodeinc/dgraph/v24
View open source insights on deps.dev
Purl
pkg:golang/github.com/hypermodeinc/dgraph/v24

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
24.1.9

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/hypermodeinc/dgraph/v24"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5749.json"