GitHub Advisoryadvisory · PyPI
GHSA-fx83-3ph3-9j2q Cross-site Scripting (XSS) in Django REST Framework
MEDIUM
Official page ↗
- Aliases
- CVE-2020-25626
- Ecosystem
- PyPI
- Packages
- djangorestframework
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-20, CWE-79
- Reviewed
- 2021-03-12
Affected packages
• PyPI djangorestframework: < 3.11.2 → fixed in 3.11.2
Description
A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious tags, leading to a cross-site-scripting (XSS) vulnerability.
Related
Alias · CVE (1)
- CVE-2020-25626 A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-25626 advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1878635 web
- https://github.com/advisories/GHSA-fx83-3ph3-9j2q advisory
- https://github.com/encode/django-rest-framework package
- https://github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml web
- https://security.netapp.com/advisory/ntap-20201016-0003 web
- https://www.debian.org/security/2022/dsa-5186 web