ghsa-gv98-g628-m9x5
Vulnerability from github
Published
2022-05-17 03:20
Modified
2024-09-18 19:55
Severity ?
6.1 (Medium) - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
5.3 (Medium) - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
5.3 (Medium) - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Summary
Django Cross-site Scripting Vulnerability
Details
The django.util.http.is_safe_url
function in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 does not properly handle leading whitespaces, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs, as demonstrated by a \njavascript:
URL.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "Django" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.4.18" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "PyPI", "name": "Django" }, "ranges": [ { "events": [ { "introduced": "1.6" }, { "fixed": "1.6.10" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "PyPI", "name": "Django" }, "ranges": [ { "events": [ { "introduced": "1.7" }, { "fixed": "1.7.3" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2015-0220" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2023-08-03T21:14:30Z", "nvd_published_at": "2015-01-16T16:59:00Z", "severity": "MODERATE" }, "details": "The `django.util.http.is_safe_url` function in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 does not properly handle leading whitespaces, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs, as demonstrated by a `\\njavascript:` URL.", "id": "GHSA-gv98-g628-m9x5", "modified": "2024-09-18T19:55:30Z", "published": "2022-05-17T03:20:49Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2015-0220" }, { "type": "WEB", "url": "https://github.com/django/django/commit/4c241f1b710da6419d9dca160e80b23b82db7758" }, { "type": "WEB", "url": "https://github.com/django/django/commit/72e0b033662faa11bb7f516f18a132728aa0ae28" }, { "type": "WEB", "url": "https://github.com/django/django/commit/de67dedc771ad2edec15c1d00c083a1a084e1e89" }, { "type": "PACKAGE", "url": "https://github.com/django/django" }, { "type": "WEB", "url": "https://github.com/django/django/blob/4555a823fd57e261e1b19c778429473256c8ea08/docs/releases/1.4.18.txt#L34-L46" }, { "type": "WEB", "url": "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-5.yaml" }, { "type": "WEB", "url": "https://web.archive.org/web/20150128111656/http://secunia.com/advisories/62285" }, { "type": "WEB", "url": "https://web.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109" }, { "type": "WEB", "url": "https://web.archive.org/web/20150523054953/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:036/?name=MDVSA-2015:036" }, { "type": "WEB", "url": "https://web.archive.org/web/20151104201446/http://secunia.com/advisories/62718" }, { "type": "WEB", "url": "https://www.djangoproject.com/weblog/2015/jan/13/security" }, { "type": "WEB", "url": "http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148485.html" }, { "type": "WEB", "url": "http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148608.html" }, { "type": "WEB", "url": "http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html" }, { "type": "WEB", "url": "http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html" }, { "type": "WEB", "url": "http://ubuntu.com/usn/usn-2469-1" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "type": "CVSS_V3" }, { "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N", "type": "CVSS_V4" } ], "summary": "Django Cross-site Scripting Vulnerability" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.