CVE-2018-25045 json
Django REST framework XSS Vulnerability
published 2022-07-23 4 y ago modified 2026-07-07 4 mo ago also GHSA-xqcf-hj92-967m , PYSEC-2026-804 , EUVD-2022-6453
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.
Patch / fix
- pypi django-rest-framework 3.9.1
- django-rest-framework django_rest_framework 3.9.1
- djangorestframework Debian 14, Debian 13, Debian 12 3.10.2-1
debian advisories DEBIAN-CVE-2018-25045
- github.com/encode/django-rest-framework@4bb9a3c commit
- github.com/encode/django-rest-framework#6191 pull request
- github.com/encode/django-rest-framework#6330 pull request
Exploit prediction
0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django-rest-framework | <3.9.1 |
3.9.1 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/encode/django-rest-framework/pull/6191
web, third-party-advisory
-
github.com
/encode/django-rest-framework/pull/6330
web, third-party-advisory
-
github.com
/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8
web, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-25045
advisory
-
github.com
/encode/django-rest-framework
package
-
pypi.org
/project/django-rest-framework
package
-
github.com
/advisories/GHSA-xqcf-hj92-967m
advisory
Sources
- CVE List CVE-2018-25045
- GitHub Advisory GHSA-xqcf-hj92-967m
- NVD CVE-2018-25045
- OSV PYSEC-2026-804
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.