Read the docs

SQL injection in Daptin via the sort query parameter

Priority MEDIUM 48CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · Low · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.

Summary

Daptin, a GraphQL and JSON-API headless CMS, is affected before 0.12.30. The generic GET /api/{entity} list endpoint uses the sort query parameter to build SELECT and ORDER BY identifiers without checking the column against the table schema, so an embedded identifier quote can break out of the quoted identifier and inject SQL (CWE-89). An unauthenticated remote attacker can extract unauthorized table data through blind or error-based behavior, or repeatedly trigger query failures.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00681 47th percentileScored 2026-11-30
Fix Fixed daptin (daptin): 0.12.30github.com/daptin/daptin (Go): 0.12.30

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
daptindaptinbefore 0.12.300.12.30Patch availableCNA
—github.com/daptin/daptin (Go)before 0.12.300.12.30Patch availableGHSA-hq2p-f2vj-v3cm
  • daptin Vendordaptin Affected before 0.12.30 Fixed in 0.12.30 Patch available CNA
  • github.com/daptin/daptin (Go) Vendor— Affected before 0.12.30 Fixed in 0.12.30 Patch available GHSA-hq2p-f2vj-v3cm

Remediation

Update Daptin to version 0.12.30, which fixes the issue for both the daptin product and the github.com/daptin/daptin Go module. CISA requires U.S. federal agencies to fix it by the due date.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA daptin (daptin) Fixed in 0.12.30
  • Fix · GHSA-hq2p-f2vj-v3cm github.com/daptin/daptin (Go) Fixed in 0.12.30 Advisory →

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-77367
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-20 Alias added: GHSA-hq2p-f2vj-v3cm
  4. 2026-11-20 Fix available: Go/github.com/daptin/[email protected] · GHSA-hq2p-f2vj-v3cm
  5. 2026-11-20 CVSS score added · GHSA-hq2p-f2vj-v3cm
  6. 2026-11-20 Weakness changed · GHSA-hq2p-f2vj-v3cm
  7. 2026-11-20 5 new references · GHSA-hq2p-f2vj-v3cm

References

  • TI-2026-83293 Daptin Accept-Language parsing lets requests consume excessive CPU CVSS 4.0HIGH 8.7
  • TI-2026-94984 Broken access control in Daptin YJS endpoint exposes restricted rows CVSS 3.1CRITICAL 9.6
  • TI-2026-32315 Daptin fuzzy search injects unvalidated column name into raw SQL CVSS 4.0HIGH 7.1
  • TI-2026-50833 daptin - Authentication Bypass via Null Owner Permission Check on usergroup Objects CVSS 3.1CRITICAL 9.1
  • TI-2026-30021 Daptin vulnerable to SQL injection via unvalidated goqu.L() calls in aggregate API CVSS 3.1HIGH 8.3
  • TI-2026-96914 Incorrect authorization in Daptin CardDAV lets users overwrite contacts CVSS 4.0MEDIUM 5.3

Sources