CVE-2026-77367 PUBLISHED

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

Assigner: GitHub_M
Reserved: 20.08.2026 Published: 19.11.2026 Updated: 19.11.2026

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.

Metrics

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

Product Status

Vendor daptin
Product daptin
Versions
  • Version < 0.12.30 is affected

References

Problem Types

  • CWE-20: Improper Input Validation CWE
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command CWE