Advisory

GHSA-xqcf-hj92-967m

Also known as: CVE-2018-25045, PYSEC-2026-804

Summary

Django REST framework XSS Vulnerability

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-07-24 00:00 UTC
Modified
2026-07-07 11:56 UTC

Affected packages and fixes

django-rest-framework

PyPI · All systems

Affected

  • introduced 0, fixed 3.9.1 (ecosystem)

Fixed versions

3.9.1

Fix

  • Fixed version 3.9.1
    pip install --upgrade django-rest-framework==3.9.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences