medium5.3
CVE-2021-27515
Path traversal in url-parse
Impact
url-parse before 1.5.0 mishandles certain uses of backslash such as http:\/ and interprets the URI as a relative path.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | url-parse | >= 0.1.0, < 1.5.0 | 1.5.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Url-Parse Project | Url-Parse | before 1.5.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://advisory.checkmarx.net/advisory/CX-2021-4306
- https://github.com/unshiftio/url-parse/commit/d1e7e8822f26e8a49794b757123b51386325b2b0
- https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.0
- https://github.com/unshiftio/url-parse/pull/197
- https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html
- https://github.com/advisories/GHSA-9m6j-fcg5-2442
- https://nvd.nist.gov/vuln/detail/CVE-2021-27515
- https://github.com/github/advisory-database/pull/6763