CVE-2020-25626
publisheddjango-rest-framework: XSS Vulnerability in API viewer
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | Django REST FrameworkAll django-rest-framework versions before 3.12.0 and before 3.11.2 | Affected | Not stated | redhat |
| Debian | buster | djangorestframework | Advisory build | 3.9.0-1+deb10u1 | DSA-5186-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | python3-djangorestframeworknoarch | Advisory build | 3.11.2-lp152.2.3.1 | OPENSUSE-SU-2021:0322-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-djangorestframeworkaarch64 | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-djangorestframeworkppc64le | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-djangorestframeworks390x | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-djangorestframeworkx86_64 | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-djangorestframeworkaarch64 | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
Show 27 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-djangorestframeworkppc64le | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-djangorestframeworks390x | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-djangorestframeworkx86_64 | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-djangorestframeworkaarch64 | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-djangorestframeworkppc64le | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-djangorestframeworks390x | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-djangorestframeworkx86_64 | Advisory build | 3.15.1-1.1 | OPENSUSE-SU-2024:13861-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-djangorestframeworkaarch64 | Advisory build | 3.18.0-1.1 | OPENSUSE-SU-2026:11571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-djangorestframeworkppc64le | Advisory build | 3.18.0-1.1 | OPENSUSE-SU-2026:11571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-djangorestframeworks390x | Advisory build | 3.18.0-1.1 | OPENSUSE-SU-2026:11571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-djangorestframeworkx86_64 | Advisory build | 3.18.0-1.1 | OPENSUSE-SU-2026:11571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-djangorestframeworkaarch64 | Advisory build | 3.18.0-1.1 | OPENSUSE-SU-2026:11571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-djangorestframeworkppc64le | Advisory build | 3.18.0-1.1 | OPENSUSE-SU-2026:11571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-djangorestframeworks390x | Advisory build | 3.18.0-1.1 | OPENSUSE-SU-2026:11571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-djangorestframeworkx86_64 | Advisory build | 3.18.0-1.1 | OPENSUSE-SU-2026:11571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-djangorestframeworkaarch64 | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-djangorestframeworkppc64le | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-djangorestframeworks390x | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-djangorestframeworkx86_64 | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-djangorestframeworkaarch64 | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-djangorestframeworkppc64le | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-djangorestframeworks390x | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-djangorestframeworkx86_64 | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-djangorestframeworkaarch64 | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-djangorestframeworkppc64le | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-djangorestframeworks390x | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-djangorestframeworkx86_64 | Advisory build | 3.12.4-1.2 | OPENSUSE-SU-2024:11227-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | Django REST Framework | All django-rest-framework versions before 3.12.0 and before 3.11.2 (affected) | redhat · cna |
Weaknesses
1- CWE-20 CWE-20->CWE-77->CWE-79
References
3- https://bugzilla.redhat.com/show_bug.cgi?id=1878635
- https://security.netapp.com/advisory/ntap-20201016-0003/
- DSA-5186 https://www.debian.org/security/2022/dsa-5186
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 006a593efe29b57327439890d4b4e4bd99f162e87e1b183a4130a0d86f00ecaa
- Ingested
- 23 Sep 2026, 07:49:45 UTC
- Source record
- Official CVE record