SecurityContext

CVE-2018-25045: Django REST Framework - Reflected XSS

  • Cve: CVE-2018-25045
  • Name: Django REST Framework - Reflected XSS
  • Description: Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.
  • Impact: Attackers can execute malicious scripts in victim browsers, leading to session hijacking or data theft.
  • Remediation: Update to version 3.9.1 or later where autoescaping is enabled by default.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00798
  • Epss percentile: 0.5746
  • Assignee: [email protected]
  • Published at: 2022-07-23T02:15:07Z
  • Age in days: 1585
  • Modified at: 2026-06-17T01:54:35Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-25045
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8Patch, Third Party Advisory
https://github.com/encode/django-rest-framework/pull/6191Third Party Advisory
https://github.com/encode/django-rest-framework/pull/6330Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
django-rest-framework:django_rest_framework< 3.9.1nonvd/v1/products/django-rest-framework/django_rest_framework

Projects

RepositoryLink kindsIndexedUrl
encode/django-rest-frameworkcommit, fix, package, pullyes/v1/repositories/encode/django-rest-framework

Index

  • Repositories: 4
  • Repositories high signal: 3
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts