Skip to content

Commit 201034b

Browse files
committed
[dist] 1.5.2
1 parent 2d9ac2c commit 201034b

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

SECURITY.md

+15
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ acknowledge your responsible disclosure, if you wish.
3333

3434
## History
3535

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+
3649
> Using backslash in the protocol is valid in the browser, while url-parse
3750
> thinks it’s a relative path. An application that validates a url using
3851
> url-parse might pass a malicious link.
@@ -42,6 +55,8 @@ acknowledge your responsible disclosure, if you wish.
4255
- Twitter: [Yaniv Nizry](https://twitter.com/ynizry)
4356
- Fixed in: 1.5.0
4457

58+
---
59+
4560
> The `extractProtocol` method does not return the correct protocol when
4661
> provided with unsanitized content which could lead to false positives.
4762

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "url-parse",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "Small footprint URL parser that works seamlessly across Node.js and browser environments",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)