File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,19 @@ acknowledge your responsible disclosure, if you wish.
33
33
34
34
## History
35
35
36
+ > url-parse mishandles certain use a single of (back) slash such as https:\ &
37
+ > https:/ and > interprets the URI as a relative path. Browsers accept a single
38
+ > backslash after the protocol, and treat it as a normal slash, while url-parse
39
+ > sees it as a relative path.
40
+
41
+ - ** Reporter credits**
42
+ - Ready-Research
43
+ - GitHub: [ @Ready-Reserach ] ( https://github.com/ready-research )
44
+ - Huntr report: https://www.huntr.dev/bounties/1625557993985-unshiftio/url-parse/
45
+ - Fixed in: 1.5.2
46
+
47
+ ---
48
+
36
49
> Using backslash in the protocol is valid in the browser, while url-parse
37
50
> thinks it’s a relative path. An application that validates a url using
38
51
> url-parse might pass a malicious link.
@@ -42,6 +55,8 @@ acknowledge your responsible disclosure, if you wish.
42
55
- Twitter: [ Yaniv Nizry] ( https://twitter.com/ynizry )
43
56
- Fixed in: 1.5.0
44
57
58
+ ---
59
+
45
60
> The ` extractProtocol ` method does not return the correct protocol when
46
61
> provided with unsanitized content which could lead to false positives.
47
62
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " url-parse" ,
3
- "version" : " 1.5.1 " ,
3
+ "version" : " 1.5.2 " ,
4
4
"description" : " Small footprint URL parser that works seamlessly across Node.js and browser environments" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments