CVE-2026-41422 Daptin vulnerable to SQL injection via unvalidated goqu.L() calls in aggregate API
Authenticated users can inject arbitrary SQL via unvalidated parameters in the aggregate API, allowing unauthorized data access or modification.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-41422?
CVE-2026-41422 is a high-severity SQL injection vulnerability in daptin, published on 7 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Daptin is a GraphQL/JSON-API headless CMS. Prior to version 0.11.4, the /aggregate/:typename endpoint accepted column and group query parameters that were passed verbatim to goqu.L() — a raw SQL literal expression builder — without any validation. This bypassed all parameterization and allowed authenticated users with any valid session to inject arbitrary SQL expressions. This issue has been patched in version 0.11.4.
Weakness: CWE-89
Which versions are affected by CVE-2026-41422?
3 open source packages ship an affected version, including github.com/daptin/daptin.
| Package | Affected | Fixed in |
|---|---|---|
github.com/daptin/daptin Go | All versions | 0.11.4 |
github.com/daptin/daptin Go | All versions | 0.11.4 |
github.com/daptin/daptin Go | All versions | 0.11.4 |
How do I fix CVE-2026-41422?
Upgrade github.com/daptin/daptin to 0.11.4 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-41422 being exploited?
There is no known exploitation of CVE-2026-41422 in the wild and no public exploit code.
Sources
Also known as GHSA-rw2c-8rfq-gwfv, GO-2026-5640.