← VULNERABILITIES

CVE-2026-77367

Daptin: Unauthenticated SQL Injection via the `sort` query parameter on every entity list endpoint

Critical · 9.4Fix available
CVSS
9.4
EPSS
2.34% (p84)
Published
2026-11-19
Age
15d old
Modified
2026-11-20
Product
daptin daptin
Aliases
GHSA-hq2p-f2vj-v3cm, EUVD-2026-130383

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H

Description

Daptin is a GraphQL/JSON-API headless CMS. Prior to 0.12.30, the generic GET /api/{entity} list endpoint accepts attacker-controlled sort values in PaginatedFindAllWithoutFilters in server/resource/resource_findallpaginated.go without validating the requested column against the table schema. The code uses those values for SELECT and ORDER BY identifier construction, so an embedded identifier quote can terminate the quoted identifier and make the remainder parse as SQL, allowing an unauthenticated attacker to extract unauthorized table data through blind or error-based behavior or repeatedly trigger query failures. This issue is fixed in version 0.12.30.

Fixed in

0.12.30

Affected packages

EcosystemPackageRangeFixed
Gogithub.com/daptin/daptin<= 0.12.290.12.30
Gogithub.com/daptin/daptin>=0, <0.12.300.12.30

Sources

References

JSON