Uncontrolled CPU use in Daptin via Accept-Language header parsing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
Daptin before 0.12.26 is affected, and the Go module github.com/daptin/daptin through 0.12.15 is affected as well. The LanguageMiddleware passes the Accept-Language header to a language parser without size or shape checks, so a header with many subtags causes quadratic work (CWE-407). An unauthenticated remote attacker can send requests to the public landing page or /api to consume server CPU, and repeated requests can saturate the server (CWE-400).
Written with Claude Haiku 5.5 from the sources below · 2026-10-31
Description from the CNA
Daptin is a GraphQL/JSON-API headless CMS. Prior to 0.12.26, the global `LanguageMiddleware` in `server/language.go` passes the raw `Accept-Language` header from `LanguageMiddlewareFunc` through `GetLanguagePreference` to `golang.org/x/text/language.ParseAcceptLanguage` without a size or shape filter. The guard for CVE-2022-32149 counts hyphens but not underscores, even though the internal parser normalizes underscores to hyphens. Long lists of underscore-separated language subtags longer than eight characters bypass the guard. These subtags fail the `len <= 8` length check in `golang.org/x/text/internal/language/parse.go`, causing repeated `gobble` operations to move the entire remaining buffer through `runtime.memmove`. With many invalid subtags, this repeated buffer movement takes quadratic work. Unauthenticated requests to the public landing page or `/api` can consume disproportionate CPU, with a 256 KiB header already causing seconds of processing and larger input permitted by the default 1 MiB header ceiling. `resource.CheckErr` also logs the entire invalid header, amplifying cost, while normal successful HTTP responses can conceal the denial-of-service traffic. Repeated requests can saturate server CPU. This issue is fixed in version 0.12.26.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- 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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| daptin | daptin | before 0.12.26 | 0.12.26 | Patch available | CNA |
| — | github.com/daptin/daptin (Go) | up to 0.12.15 | — | No fix listed | GHSA-rhj7-vh3v-mcq6 |
- daptin Vendordaptin Affected before 0.12.26 Fixed in 0.12.26 Patch available CNA
- github.com/daptin/daptin (Go) Vendor— Affected up to 0.12.15 Fixed in — No fix listed GHSA-rhj7-vh3v-mcq6
Remediation
Upgrade Daptin to version 0.12.26, which fixes this issue. The sources list no fixed version for github.com/daptin/daptin.
Written with Claude Haiku 5.5 from the sources below · 2026-10-31
- Fix · CNA daptin (daptin) Fixed in 0.12.26
Timeline
- 2026-10-30 Threatist record created from CVE-2026-62160
- 2026-10-30 CISA SSVC decision points changed
- 2026-10-30 Priority changed: MEDIUM → HIGH
References
More daptin vulnerabilities
- 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
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences