Vulnerability Details : CVE-2018-25045
Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2018-25045
- cpe:2.3:a:django-rest-framework:django_rest_framework:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2018-25045
0.12%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 33 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2018-25045
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST |
CWE ids for CVE-2018-25045
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by: nvd@nist.gov (Primary)
References for CVE-2018-25045
-
https://github.com/encode/django-rest-framework/pull/6191
Problem: autoescape not getting passed to urlize_quoted_links filter by dkliban · Pull Request #6191 · encode/django-rest-framework · GitHubThird Party Advisory
-
https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8
Fix XSS caused by disabled autoescaping in the default DRF Browsable … · encode/django-rest-framework@4bb9a3c · GitHubPatch;Third Party Advisory
-
https://github.com/encode/django-rest-framework/pull/6330
Fix XSS caused by disabled autoescaping in the default DRF Browsable API view templates by zyv · Pull Request #6330 · encode/django-rest-framework · GitHubThird Party Advisory
Jump to