CVE-2026-73229: Django REST framework AdminRenderer May Disclose GET-protected Data Vulnerability
MODERATECVE-2026-73229 is a MODERATE (CVSS 4.3) adminrenderer may disclose get-protected data vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Django REST framework libraries in the PyPI ecosystem. The issue involves adminrenderer may disclose get-protected data when rendering invalid write requests. Remediation is available by upgrading affected packages to version 3.17.2.
CVE-2026-73229 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-73229
To remediate this vulnerability, upgrade all affected Django REST framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install djangorestframework>=3.17.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show djangorestframework
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-73229, inspect your installed packages using pip:
pip show djangorestframework
Analyze the terminal output to locate any version of Django REST framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.17.2), your application is affected.
Note: The pip show djangorestframework command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Django REST framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-73229 Affected Django REST framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
djangorestframework
|
PyPI |
< 3.17.2
|
3.17.2
|
References
Frequently Asked Questions
What is CVE-2026-73229?
Which Django REST framework versions are affected?
What version fixes CVE-2026-73229?
Is djangorestframework affected?
What is the CVSS score of CVE-2026-73229?
What CWE is associated with CVE-2026-73229?
How can I check PyPI dependencies for CVE-2026-73229?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g47c-3xmw-q6m2",
"modified" : "2026-09-01T19:24:29Z",
"published" : "2026-09-01T19:24:29Z",
"aliases" : [ "CVE-2026-73229" ],
"summary" : "Django REST framework: AdminRenderer may disclose GET-protected data when rendering invalid write requests",
"details" : "Summary\n\nAdminRenderer may disclose data that would normally be protected by GET permissions when rendering a 400 Bad Request response for an invalid write request.\n\nIf a view allows POST (or another write method) but denies GET, an invalid request rendered through AdminRenderer can invoke the view's GET handler and include data from the GET representation in the generated HTML response.\n\nThis behavior appears to be specific to AdminRenderer and does not affect the normal JSON rendering path.\n\n\n---\n\nDetails\n\nWhile investigating the AdminRenderer rendering flow, I observed that invalid write requests are rendered by temporarily overriding the request method and invoking the view's GET handler:\n\n```\nwith override_method(view, request, \"GET\") as request:\n response = view.get(request, *view.args, **view.kwargs)\n\ndata = response.data\n```\n\nThis execution path differs from a normal GET request.\n\nUnder normal request processing, a GET request flows through:\n\n```\nAPIView.dispatch()\n └── APIView.initial()\n └── APIView.check_permissions()\n```\n\nHowever, during AdminRenderer rendering, the renderer directly invokes:\n\nview.get(...)\n\nA view whose permission class explicitly allowed POST but denied GET still executed its GET handler while rendering an invalid POST request through AdminRenderer.\n\nAs a result, data intended to be available only through an authorized GET request was included in the generated HTML response.\n\n\n---\n\nProof of Concept\n\nUsing a standard ListCreateAPIView.\n\nPermission class:\n\n```\nclass ProbePermission(BasePermission):\n def has_permission(self, request, view):\n return request.method == \"POST\"\n\nView:\n\nclass View(ListCreateAPIView):\n renderer_classes = (AdminRenderer, JSONRenderer)\n permission_classes = (ProbePermission,)\n serializer_class = ProbeSerializer\n\n def get_queryset(self):\n return [\n {\n \"name\": \"visible\",\n \"secret\": \"GET-ONLY-SECRET\",\n }\n ]\n```\n\nExpected Behaviour\n\n```\nGET request\n→ 403 Forbidden\n\nInvalid POST request\n→ 400 Bad Request\n→ Response should contain only validation errors.\n→ GET-only data should not be rendered.\n\n```\nObserved Behaviour\n\n```\nGET request\n→ 403 Forbidden\n\nInvalid POST request rendered through AdminRenderer\n→ 400 Bad Request\n→ HTML response contains:\n\nGET-ONLY-SECRET\n```\n\nTthe same behavior is shown using a minimal APIView implementation.\n\nObserved results:\n\n```\nminimal.post_400.handler_calls =\n[\n (\"post\", \"POST\"),\n (\"get\", \"GET\")\n]\n\nminimal.post_400.contains_secret = True\n```\n\nGeneric view reproduction:\n\n```\ngeneric.direct_get.status = 403\ngeneric.direct_get.contains_secret = False\n\ngeneric.post_400.status = 400\ngeneric.post_400.contains_secret = True\n\ngeneric.post_400.permission_calls =\n[\n (\"GenericAdminView\", \"POST\"),\n ...\n (\"GenericAdminView\", \"OPTIONS\")\n]\n\ngeneric.post_400.queryset_calls =\n[\n (\"GenericAdminView\", \"GET\"),\n ...\n]\n```\n\nThese observations indicate that direct GET requests are correctly denied, while the simulated GET used during AdminRenderer rendering can still retrieve the protected representation.\n\n\n---\n\nImpact\n\nThis issue may result in information disclosure when all of the following conditions are met:\n\nAdminRenderer is enabled.\n\nThe client negotiates the HTML renderer (for example using Accept: text/html).\n\nThe application permits POST (or another write method).\n\nGET requests are denied by the configured permission class.\n\nThe invalid write request returns 400 Bad Request.\n\nThe GET representation contains information that the requester would normally not be permitted to access.\n\n\nThis issue does not appear to affect:\n\nJSON rendering\n\nStandard API responses\n\nSuccessful write requests\n\n\nThe behavior appears limited to the HTML rendering path used by AdminRenderer.\n\n\n---\n\nSuggested Fix\n\nPossible approaches include:\n\nPerform equivalent permission checks before executing the simulated GET request.\n\nAvoid invoking view.get() when the corresponding GET request would not be permitted.\n\nFall back to rendering only serializer/form validation errors instead of retrieving the GET representation.\n\n\nA regression test could create a permission class that allows POST while denying GET, then verify that an invalid POST rendered with AdminRenderer does not include data from the protected GET representation.\n\n\n---\n\nEnvironment\n\nRepository:\n\n`encode/django-rest-framework`\n\nBranch tested:\n\n`security-audit-drf`\n\nCommit tested:\n\n`cf582fb58e9e5ffcc8ed78a2cb9aaa8f4865666a`",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "djangorestframework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.17.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.17.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/encode/django-rest-framework/security/advisories/GHSA-g47c-3xmw-q6m2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-73229"
}, {
"type" : "WEB",
"url" : "https://github.com/encode/django-rest-framework/pull/10012"
}, {
"type" : "WEB",
"url" : "https://github.com/encode/django-rest-framework/commit/71f81946906e52f9dc8e5d22a0f3d2afa50c455e"
}, {
"type" : "WEB",
"url" : "https://github.com/encode/django-rest-framework/commit/9e82afc98acfe6fc28c9bf78147f0c5b3f222cb5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/encode/django-rest-framework"
}, {
"type" : "WEB",
"url" : "https://github.com/encode/django-rest-framework/releases/tag/3.17.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-01T19:24:29Z",
"nvd_published_at" : "2026-08-11T20:18:48Z"
}
}