Is djangorestframework 2.2 vulnerable?
PyPI · 8 releases from 2.2.0 to 2.2.7 · latest djangorestframework is 3.18.3 · checked 18 Nov 2026
Yes: 5 known advisories
Yes. djangorestframework 2.2.7, the last 2.2 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.
pip install 'djangorestframework>=3.18.2'Is your project on an affected djangorestframework?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting djangorestframework 2.2.7
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
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
Django REST framework: AdminRenderer may disclose GET-protected data when rendering invalid write requests
- Affected
- <3.17.2
- Fixed in
- 3.17.2
Cross-site Scripting in djangorestframework
- Affected
- <3.15.2
- Fixed in
- 3.15.2
Cross-site Scripting (XSS) in Django REST Framework
- Affected
- <3.11.2
- Fixed in
- 3.11.2
Every djangorestframework 2.2.x release
Affected: 2.2.0 to 2.2.7. Latest djangorestframework: 3.18.3.
| Version | Known advisories |
|---|---|
| djangorestframework 2.2.7 | CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626 |
| djangorestframework 2.2.6 | CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626 |
| djangorestframework 2.2.5 | CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626 |
| djangorestframework 2.2.4 | CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626 |
| djangorestframework 2.2.3 | CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626 |
| djangorestframework 2.2.2 | CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626 |
| djangorestframework 2.2.1 | CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626 |
| djangorestframework 2.2.0 | CVE-2026-114138, CVE-2026-73228, CVE-2026-73229, CVE-2024-21520, CVE-2020-25626 |
Which of your client projects are still on djangorestframework 2.2?
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
- djangorestframework 3.0
- djangorestframework 2.4
- djangorestframework 2.3
- djangorestframework 2.1
- djangorestframework 2.0
- djangorestframework 0.4
- djangorestframework 3.18
- djangorestframework 3.17
- djangorestframework 3.16
- djangorestframework 3.15
- djangorestframework 3.14
- djangorestframework 3.13
- All djangorestframework advisories
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.