Inefficient Algorithmic Complexity Affecting djangorestframework package, versions [,3.18.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.43% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DJANGORESTFRAMEWORK-21431458
  • published22 Oct 2026
  • disclosed22 Oct 2026
  • creditJisung Chae

Introduced: 22 Oct 2026

NewCVE-2026-114138  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade djangorestframework to version 3.18.2 or higher.

Overview

djangorestframework is a powerful and flexible toolkit for building Web APIs.

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via unbounded parsing of the Accept and Content-Type headers in content negotiation. An attacker can send a request with an extremely large or token-heavy Accept header, causing the server to spend excessive CPU time parsing and matching media types, which results in a crash or prolonged unresponsiveness. The fix introduces hard limits on header length (8192 bytes), the number of accepted tokens (64), and individual media-type token length (256 bytes) in DefaultContentNegotiation.

Note: This is only exploitable at full impact when no throttle classes are configured, which is the default DRF configuration.

CVSS Base Scores

version 4.0
version 3.1