CVE-2024-47063: Django Httpresponse Json Xss
Returning JSON data via `HttpResponse` without explicitly setting the `content_type` defaults to `text/html`. If the JSON contains user-controlled input, an attacker could exploit this to perform Cross-Site Scripting (XSS) by tricking the browser into interpreting the JSON document as HTML. To fix this, use `django.http.JsonResponse` or explicitly pass `cont
greprules fetch cve-2024-47063-django-httpresponse-json-xss --engine opengrepDescription
Returning JSON data via `HttpResponse` without explicitly setting the `content_type` defaults to `text/html`. If the JSON contains user-controlled input, an attacker could exploit this to perform Cross-Site Scripting (XSS) by tricking the browser into interpreting the JSON document as HTML. To fix this, use `django.http.JsonResponse` or explicitly pass `cont
Community feedback
0 signals from signed-in users.
- Useful
- 0
- False positive
- 0
- Metadata
- 0