Live threats

All CVEs / Django-rest-framework

CVE-2018-25045Django-rest-framework Django Rest Framework

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django Rest Framework.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
django-rest-frameworkdjango_rest_framework< 3.9.1

Official sources

References

Links published by the sources. Open them with care.