What’s Vulnerable › Vulnerabilities
CVE-2018-25045
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-07-23 · updated 2026-06-17
- Weakness: CWE-79
Description
Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.
Affected products
- Django-Rest-Framework Django Rest Framework: before 3.9.1 — fixed in 3.9.1
How to fix
Upgrade to a fixed version: Django-Rest-Framework Django Rest Framework 3.9.1. Check the vendor advisory for mitigations.
References
- https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8
- https://github.com/encode/django-rest-framework/pull/6191
- https://github.com/encode/django-rest-framework/pull/6330
- https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8
- https://github.com/encode/django-rest-framework/pull/6191
- https://github.com/encode/django-rest-framework/pull/6330
Get alerted when CVE-2018-25045 or the next vulnerability affects your stack