All CVEs / Django-rest-framework
CVE-2018-25045Django-rest-framework Django Rest Framework
Medium 6.1 No auth needed
Follow: this CVE · Django-rest-framework · Django-rest-framework Django Rest Framework We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 58
- Auth required
- No
- Published
- Jul 23, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.
What to do
- Apply the vendor's security update for Django Rest Framework.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django-rest-framework |
< 3.9.1 |
3.9.1 |
pip install "django-rest-framework>=3.9.1" |
| PyPI | django-rest-framework |
< 3.9.1 |
3.9.1 |
pip install "django-rest-framework>=3.9.1" |
Per OSV / GitHub Advisories (GHSA-xqcf-hj92-967m, PYSEC-2026-804). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| django-rest-framework | django_rest_framework | < 3.9.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Third Party Advisory