CVEfocus › CVE database › CVE-2018-25045

CVE-2018-25045

CVSS 6.1 MediumEPSS 0.8% (higher than 57% of CVEs)Published 2022-07-23Updated 2024-08-05Assigner: mitre

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

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
3Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04djangorestframeworkNot affected
vulnerable_code_not_present
Ubuntu 25.10djangorestframeworkNot affected
vulnerable_code_not_present
Ubuntu 24.04djangorestframeworkNot affected
vulnerable_code_not_present
Ubuntu 22.04djangorestframeworkNot affected
vulnerable_code_not_present
Ubuntu 20.04djangorestframeworkNot affected
vulnerable_code_not_present
Ubuntu 18.04djangorestframeworkFix pendingUBUNTU-CVE-2018-25045
Ubuntu 16.04djangorestframeworkFix pendingUBUNTU-CVE-2018-25045
Ubuntu 14.04djangorestframeworkFix pending
Debian 14djangorestframeworkFixed3.10.2-1DEBIAN-CVE-2018-25045
Debian 13djangorestframeworkFixed3.10.2-1DEBIAN-CVE-2018-25045
Debian 12djangorestframeworkFixed3.10.2-1DEBIAN-CVE-2018-25045
PyPI librarydjango-rest-frameworkFixed3.9.1GHSA-xqcf-hj92-967m

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.