CVE-2018-25045: django-rest-framework django_rest_framework Cross-site Scripting
CVSS: 6.1v3.1MediumModified
AliasesGHSA-xqcf-hj92-967mPYSEC-2026-804UBUNTU-CVE-2018-25045DEBIAN-CVE-2018-25045
Published 23-07-2022Last modified 05-08-2024
Vulnerability summary
CVE-2018-25045 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in django-rest-framework django_rest_framework. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 55.1% of scored vulnerabilities.
CVSS score
6.1/10
010
Medium · v3.1 (NVD)EPSS score
0.78%
0%100%
Low · +0.02 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 1Timeline
- 23-07-2022PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
Description
Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.
CVSS metrics
4 scores · 4 sources · 1 versionMedium 6.1Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NSourcesAll 4 agree
- OSV · PypiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.78%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
+0.02 pp
From 0.76% on 20-09-2026
20-09-202620-10-2026
EPSS score0.78%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- djangorestframework< 3.10.2-1
Django-rest-framework1 product
- django_rest_framework< 3.9.1
PyPI1 product
- django-rest-framework< 3.9.1
Ubuntu1 product
- djangorestframeworkAll versions (No fix recorded)
4 vendors · 4 products
References
10 links- github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8X Refsource MISCPatchThird Party AdvisoryWEBREPORT