GO-2026-5837: Dgraph Vulnerable to DQL Injection via checkUserPassword GraphQL Query

Published Jul 8, 2026
·
Updated

Dgraph is an open source distributed GraphQL database. Prior to version 25.3.4, the checkUserPassword GraphQL query in Dgraph is vulnerable to DQL (Dgraph Query Language) injection. User-supplied password values are interpolated directly into a DQL checkpwd() query via fmt.Sprintf without any escaping or parameterization. An attacker can inject a password containing a double-quote character to break out of the DQL string literal and append arbitrary DQL query blocks. Version 25.3.4 patches the issue.

Affected Software

1 affected component
Dgraph Dgraph<25.3.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Dgraph to a version that resolves this vulnerability.

    Fixed in 25.3.4

Event History

Jul 8, 2026
CVE Published
via OSV·01:27 PM
Data Sourced
via OSV·01:27 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An unauthenticated remote attacker can exploit it by supplying a crafted password value to the checkUserPassword GraphQL query. The attacker does not need user interaction or prior privileges.

2

What input is required for exploitation?

The password value must contain a double-quote character that terminates the DQL string literal, allowing the attacker to append arbitrary DQL query blocks.

3

Which versions are affected and what fixes it?

Dgraph versions prior to 25.3.4 are affected. Upgrade to version 25.3.4 to apply the patch.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203