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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 16.04 LTS | djangorestframework | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django-rest-framework | < 3.9.1 | 3.9.1 | GHSA-xqcf-hj92-967m |
Advisories 1
- DSA-5186-1 djangorestframework - security update Debian Security (DSA / DLA) · Mar 9, 2026