Is djangorestframework 2.1 vulnerable?

PyPI · 18 releases from 2.1.0 to 2.1.17 · latest djangorestframework is 3.18.3 · checked 18 Nov 2026

Yes: 5 known advisories

Yes. djangorestframework 2.1.17, the last 2.1 release, is affected by 5 known security advisories (1 high, 3 medium, 1 low), including CVE-2026-114138, CVE-2026-73228, CVE-2026-73229. Upgrade to 3.18.2 or later to fix all of them.

Upgrade with:pip install 'djangorestframework>=3.18.2'

Is your project on an affected djangorestframework?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting djangorestframework 2.1.17

  • HighCVE-2026-114138GHSA-33wh-fxxf-88vv22 Oct 2026

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

    Affected
    <3.18.2
    Fixed in
    3.18.2
  • MediumCVE-2026-73228GHSA-2m8g-3cmr-wg3w1 Sept 2026

    Django REST framework: Potential bypass of Django `DATA_UPLOAD_MAX_MEMORY_SIZE` when parsing oversized JSON and urlencoded request bodies via DRF `request.data`

    Affected
    <3.17.2
    Fixed in
    3.17.2
  • MediumCVE-2026-73229GHSA-g47c-3xmw-q6m21 Sept 2026

    Django REST framework: AdminRenderer may disclose GET-protected data when rendering invalid write requests

    Affected
    <3.17.2
    Fixed in
    3.17.2
  • LowCVE-2024-21520GHSA-gw84-84pc-xp8226 Jun 2024

    Cross-site Scripting in djangorestframework

    Affected
    <3.15.2
    Fixed in
    3.15.2
  • MediumCVE-2020-25626GHSA-fx83-3ph3-9j2q19 Mar 2021

    Cross-site Scripting (XSS) in Django REST Framework

    Affected
    <3.11.2
    Fixed in
    3.11.2

Every djangorestframework 2.1.x release

Affected: 2.1.0 to 2.1.17. Latest djangorestframework: 3.18.3.

VersionKnown advisories
djangorestframework 2.1.17CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.16CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.15CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.14CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.13CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.12CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.11CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.10CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.9CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.8CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.7CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.6CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.5CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.4CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.3CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.2CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.1CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626
djangorestframework 2.1.0CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626

Which of your client projects are still on djangorestframework 2.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact djangorestframework version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other djangorestframework versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.