PyPI: djangorestframework

CVE-2026-73229

Safety vulnerability ID: SFTY-20260901-88018

Affected versions of the Django REST framework package are vulnerable to Information Disclosure due to improper handling of invalid write requests by the `AdminRenderer`. The `AdminRenderer` temporarily overrides the request method to invoke the view's `GET` handler when rendering a 400 Bad Request response, which can include data intended to be protected by `GET` permissions. An attacker can exploit this by sending an invalid write request (e.g., a malformed `POST`) to a view configured with `AdminRenderer`, potentially exposing sensitive data in the HTML response that would otherwise be restricted by `GET` permissions.

Created at: Sep 11, 2026Updated at: Sep 11, 2026

Overview

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

Advisory

djangorestframework – Information Disclosure

Affected Package

Affecting djangorestframework package, versions<= 3.17.1

Also affects

---

How to Fix

Upgradedjangorestframeworkto3.17.2or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more