# CVE-2020-25626: Cross-site Scripting (XSS) in Django REST Framework

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-12-01)
- Published: 2020-09-30T19:24:45.000Z
- Modified: 2026-06-17T03:07:00.257Z
- Also known as: GHSA-fx83-3ph3-9j2q, PYSEC-2020-263
- Weaknesses: CWE-20, CWE-79
- Assigned by: redhat

## 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 <script> tags, leading to a cross-site-scripting (XSS) vulnerability.

(As written by CVE List.)

## Affected

- Django REST Framework: All django-rest-framework versions before 3.12.0 and before 3.11.2
- djangorestframework (PyPI): before 3.11.2
- encode django_rest_framework: before 3.12.0
- redhat ceph_storage: 2.0
- debian debian_linux: 11.0

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1878635> (issue-tracking, report, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20201016-0003/> (advisory, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5186> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25626> (advisory)
- <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)

## Sources

- CVE List: [CVE-2020-25626](https://www.cve.org/CVERecord?id=CVE-2020-25626), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-fx83-3ph3-9j2q](https://github.com/advisories/GHSA-fx83-3ph3-9j2q), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2020-25626](https://nvd.nist.gov/vuln/detail/CVE-2020-25626), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-263](https://osv.dev/vulnerability/PYSEC-2020-263), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-25626 · Whole record: https://cve.day/CVE-2020-25626.json · Rebuilt by cve.day 2026-11-25T22:57:54.994Z
