mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Updated vendored _urlsplit() to strip newline and tabs.
Refs Python CVE-2022-0391. Django is not affected, but others who incorrectly use internal function url_has_allowed_host_and_scheme() with unsanitized input could be at risk.
This commit is contained in:
committed by
Mariusz Felisiak
parent
5c93a84f44
commit
03eec9ff6c
@@ -177,6 +177,7 @@ class URLHasAllowedHostAndSchemeTests(unittest.TestCase):
|
||||
r"http:/\example.com",
|
||||
'javascript:alert("XSS")',
|
||||
"\njavascript:alert(x)",
|
||||
"java\nscript:alert(x)",
|
||||
"\x08//example.com",
|
||||
r"http://otherserver\@example.com",
|
||||
r"http:\\testserver\@example.com",
|
||||
|
||||
Reference in New Issue
Block a user