# CVE-2026-62160: Daptin: ParseAcceptLanguage `_` separator bypass enables >250x CPU amplification via Accept-Language header in LanguageMiddleware

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-29T16:33:09.000Z
- Modified: 2026-11-05T23:25:57.488Z
- Also known as: GHSA-rhj7-vh3v-mcq6, GO-2026-6890
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- daptin daptin: < 0.12.26
- github.com/daptin/daptin (Go): up to 0.12.15; all versions

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/daptin/daptin/security/advisories/GHSA-rhj7-vh3v-mcq6> (exploit, advisory, web)
- <https://github.com/daptin/daptin/commit/2d70950979b51eb6c8b4234dd50558b608ad2ffe>
- <https://github.com/daptin/daptin> (package)

## Sources

- CVE List: [CVE-2026-62160](https://www.cve.org/CVERecord?id=CVE-2026-62160), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-rhj7-vh3v-mcq6](https://github.com/advisories/GHSA-rhj7-vh3v-mcq6), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6890](https://pkg.go.dev/vuln/GO-2026-6890), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-62160](https://nvd.nist.gov/vuln/detail/CVE-2026-62160), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-62160 · Whole record: https://cve.day/CVE-2026-62160.json · Rebuilt by cve.day 2026-11-25T22:59:48.002Z
