Skip to content
OpenAdvisories
Medium · 6.1 CVE-2018-25045 EUVD-2022-6453GHSA-xqcf-hj92-967mPYSEC-2026-804

Django REST framework XSS Vulnerability

Published Jul 23, 2022 · Updated Aug 5, 2024 · Assigned by mitre

Description

Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 djangorestframework 3.10.2-1 —
Debian 13 djangorestframework 3.10.2-1 —
Debian 12 djangorestframework 3.10.2-1 —
Debian 10 djangorestframework 3.9.0-1+deb10u1 DSA-5186-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS djangorestframework No fix yet —
Ubuntu 16.04 LTS djangorestframework No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django-rest-framework < 3.9.1 3.9.1 GHSA-xqcf-hj92-967m

Advisories 1

References