Advisory

PYSEC-2026-804

Also known as: CVE-2018-25045, GHSA-xqcf-hj92-967m

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: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-07-06 08:03 UTC
Modified
2026-07-07 11:45 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: PyPA Advisory Database · CC BY 4.0

Sources & licences