CISA list

● PyPI package

djangorestframework

Djangorestframework has seven security advisories. The newest release any of them names as the fix is 3.18.2.

As of , djangorestframework has seven security advisories. The newest release any of them names as the fix is 3.18.2.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 3.18.23.18.27 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-114137GHSA-xw6w-gcfp-cf8mDjango REST framework: TokenProxy.delete() reports success and revokes nothingHigh severityFrom 3.12.0 before 3.18.23.18.2
CVE-2026-114138GHSA-33wh-fxxf-88vvDjango REST framework: Accept header with many large quoted parameters burns ~19s of CPU per request in content negotiationHigh severityBefore 3.18.23.18.2
CVE-2026-114136GHSA-3547-9m27-7rxgDjango REST framework: JSONParser applies an attacker-named codec to the request streamHigh severityFrom 3.6.4 before 3.18.23.18.2
CVE-2026-73228GHSA-2m8g-3cmr-wg3w, PYSEC-2026-3827Django REST framework: Potential bypass of Django `DATA_UPLOAD_MAX_MEMORY_SIZE` when parsing oversized JSON and urlencoded request bodies via DRF `request.data`Moderate severityBefore 3.17.23.17.2
CVE-2026-73229GHSA-g47c-3xmw-q6m2, PYSEC-2026-3828Django REST framework: AdminRenderer may disclose GET-protected data when rendering invalid write requestsModerate severityBefore 3.17.23.17.2
CVE-2024-21520GHSA-gw84-84pc-xp82, PYSEC-2026-1304Cross-site Scripting in djangorestframeworkLow severityBefore 3.15.23.15.2
CVE-2020-25626GHSA-fx83-3ph3-9j2q, PYSEC-2020-263Cross-site Scripting (XSS) in Django REST FrameworkModerate severityBefore 3.11.23.11.2

Other PyPI packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0
  • Package advisories from the PyPA advisory database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0