encode/django-rest-framework · Security
Django REST framework XSS Vulnerability
- GHSA ID
- GHSA-xqcf-hj92-967m
- CVE ID
- CVE-2018-25045
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Description
Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-25045 ↗
- https://github.com/encode/django-rest-framework/pull/6191 ↗
- https://github.com/encode/django-rest-framework/pull/6330 ↗
- https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8 ↗
- https://github.com/advisories/GHSA-xqcf-hj92-967m ↗