{"id":"CVE-2026-62160","summary":"Daptin: ParseAcceptLanguage `_` separator bypass enables \u003e250x CPU amplification via Accept-Language header in LanguageMiddleware","details":"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 \u003c= 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.","aliases":["GHSA-rhj7-vh3v-mcq6"],"modified":"2026-10-31T10:30:36.900313440Z","published":"2026-10-30T18:26:29.248Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62160.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-400","CWE-407"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62160.json"},{"type":"FIX","url":"https://github.com/daptin/daptin/commit/2d70950979b51eb6c8b4234dd50558b608ad2ffe"},{"type":"ADVISORY","url":"https://github.com/daptin/daptin/security/advisories/GHSA-rhj7-vh3v-mcq6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62160"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/daptin/daptin","events":[{"introduced":"0"},{"fixed":"2adfbb99450d04b6dd94bbf31cf04fe6b70474dd"},{"fixed":"2d70950979b51eb6c8b4234dd50558b608ad2ffe"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"0.12.26"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"2d70950979b51eb6c8b4234dd50558b608ad2ffe"}]}]}}],"versions":["v0.12.25","v0.12.24","v0.12.23","v0.12.22","v0.12.21","v0.12.20","v0.12.19","v0.12.18","v0.12.17","v0.12.16","v0.12.15","v0.12.14","v0.12.13","v0.12.12","v0.12.11","v0.12.10","v0.12.9","v0.12.8","v0.12.7","v0.12.6","v0.12.5","v0.12.4","v0.12.3","v0.12.2","v0.12.1","v0.11.8","v0.11.7","v0.12.0","v0.11.6","v0.11.5","v0.11.4","v0.11.3","v0.11.2","v0.11.1","v0.11.0","0.10.3","0.10.2","0.10.1","v0.10.0","v0.9.10","v0.9.9","v0.9.82","v0.9.81","v0.9.8","v0.9.7","v0.9.6","v0.9.5","v0.9.4","v0.9.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62160.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}