---
id: CVE-2026-62160
title: >-
  Daptin: ParseAcceptLanguage `_` separator bypass enables >250x CPU
  amplification via Accept-Language header in LanguageMiddleware
summary: >-
  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/t…
severity: high
cvss: 8.7
cvssVector: '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'
cvssSource: cna
cwe:
  - CWE-400
  - CWE-407
vendor: daptin
product: daptin
affected:
  - daptin < 0.12.26
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-30T19:38:29.984277Z'
exploitAvailable: true
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T19:39:33.382Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-62160'
references:
  - url: 'https://github.com/daptin/daptin/security/advisories/GHSA-rhj7-vh3v-mcq6'
    label: 'https://github.com/daptin/daptin/security/advisories/GHSA-rhj7-vh3v-mcq6'
  - url: >-
      https://github.com/daptin/daptin/commit/2d70950979b51eb6c8b4234dd50558b608ad2ffe
    label: >-
      https://github.com/daptin/daptin/commit/2d70950979b51eb6c8b4234dd50558b608ad2ffe
  - url: 'https://github.com/daptin/daptin'
  - url: 'https://github.com/advisories/GHSA-rhj7-vh3v-mcq6'
tags:
  - cve.org
  - exploit-available
  - osv
  - go
  - ghsa
epss: 0.00417
epssPercentile: 0.36212
aliases:
  - GHSA-rhj7-vh3v-mcq6
ecosystem: go
ingestedAt: '2026-10-29T16:38:25.975Z'
---

## Overview

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.

## Affected

- `daptin < 0.12.26`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-62160)

Affected packages:

- `github.com/daptin/daptin <= 0.12.15`

Source: https://osv.dev/vulnerability/GHSA-rhj7-vh3v-mcq6
