djangorestframework vulnerabilities

Web APIs for Django, made easy.

Registry
PyPI
Latest
3.18.3
License
BSD-3-Clause

7 known advisories

The latest version, 3.18.3, is not affected by any of them. Projects on older versions may be.

Update to the latest version:pip install 'djangorestframework>=3.18.3'

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

Security advisories for djangorestframework

  • HighCVE-2026-114137GHSA-xw6w-gcfp-cf8m22 Oct 2026

    Django REST framework: TokenProxy.delete() reports success and revokes nothing

    Affected
    >=3.12.0 <3.18.2
    Fixed in
    3.18.2
  • 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
  • HighCVE-2026-114136GHSA-3547-9m27-7rxg22 Oct 2026

    Django REST framework: JSONParser applies an attacker-named codec to the request stream

    Affected
    >=3.6.4 <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

Is your djangorestframework version vulnerable?

Which of your client projects still run an old djangorestframework?

NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other PyPI packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.