PYSEC-2026-804
Vulnerability from pysec - Published: 2026-07-06 08:03 - Updated: 2026-07-07 11:30
VLAI
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
6.1 (Medium)
Impacted products
| Name | purl | django-rest-framework | pkg:pypi/django-rest-framework |
|---|
Aliases
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "django-rest-framework",
"purl": "pkg:pypi/django-rest-framework"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.9.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.1.0"
]
}
],
"aliases": [
"CVE-2018-25045",
"GHSA-xqcf-hj92-967m"
],
"details": "Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.",
"id": "PYSEC-2026-804",
"modified": "2026-07-07T11:30:31.934936Z",
"published": "2026-07-06T08:03:31.459915Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-25045"
},
{
"type": "WEB",
"url": "https://github.com/encode/django-rest-framework/pull/6191"
},
{
"type": "WEB",
"url": "https://github.com/encode/django-rest-framework/pull/6330"
},
{
"type": "WEB",
"url": "https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8"
},
{
"type": "PACKAGE",
"url": "https://github.com/encode/django-rest-framework"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/django-rest-framework"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-xqcf-hj92-967m"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Django REST framework XSS Vulnerability"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…