Description
Django REST framework is a powerful and flexible toolkit for building Web APIs. Prior to 3.17.2, Django REST Framework's rest_framework/renderers.py AdminRenderer.render() uses override_method() to simulate GET and directly invokes view.get() without view.check_permissions() while rendering an invalid write request, allowing a 400 Bad Request HTML response to disclose data from a GET representation that the requester is not permitted to access. This issue is fixed in version 3.17.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| encode | django-rest-framework | < 3.17.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | djangorestframework | 3.18.1+ds1-1 | — |
| Debian 13 | djangorestframework | No fix yet | — |
| Debian 12 | djangorestframework | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | djangorestframework | No fix yet | — |
| Ubuntu 26.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 24.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 22.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 20.04 LTS | djangorestframework | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 16.04 LTS | djangorestframework | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | djangorestframework | < 3.17.2 | 3.17.2 | GHSA-g47c-3xmw-q6m2 |
References
- https://github.com/encode/django-rest-framework/security/advisories/GHSA-g47c-3xmw-q6m2
- https://github.com/encode/django-rest-framework/pull/10012
- https://github.com/encode/django-rest-framework/commit/71f81946906e52f9dc8e5d22a0f3d2afa50c455e
- https://github.com/encode/django-rest-framework/commit/9e82afc98acfe6fc28c9bf78147f0c5b3f222cb5
- https://github.com/encode/django-rest-framework/releases/tag/3.17.2