Skip to content
Heist/ feed
High

Django REST framework: Accept header with many large quoted parameters burns ~19s of CPU per request in content negotiation

Type: advisorySource: Official CVE List1 source record

Django REST framework is a toolkit for building Web APIs. Prior to 3.18.2, DefaultContentNegotiation.get_accept_list in rest_framework/negotiation.py accepts an unbounded number and aggregate size of Accept tokens, while select_renderer in that file repeatedly invokes _MediaType parsing from rest_framework/utils/mediatypes.py for each attacker-controlled token, every renderer, and forced 406 renegotiation. A remote unauthenticated client can send many distinct media types containing large quoted parameter values with numerous semicolons, causing Django's parameter parser and DRF's repeated parsing structure to consume disproportionate CPU. Requests to any reachable endpoint can pin synchronous workers for prolonged periods, and concurrent requests can make the service unavailable until the requests stop. This issue is fixed in version 3.18.2.

Announced Source revision 1
Original source ↗

CVE-2026-114138

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-114138

django-rest-framework

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "encode",
    "product": "django-rest-framework",
    "versions": [
      {
        "status": "affected",
        "version": "< 3.18.2"
      }
    ]
  }
]
Related CVEs
CVE-2026-114138

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#49450 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement