What’s Vulnerable › Vulnerabilities
CVE-2021-27515: Path traversal in url-parse
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-02-22 · updated 2026-06-17
Description
url-parse before 1.5.0 mishandles certain uses of backslash such as http:\/ and interprets the URI as a relative path.
Affected products
- unshiftio/url-parse: before 1.5.0 — fixed in 1.5.0
- Npm Url-Parse: from 0.1.0 before 1.5.0 — fixed in 1.5.0
How to fix
Upgrade to a fixed version: unshiftio/url-parse 1.5.0; Npm Url-Parse 1.5.0. Check the vendor advisory for mitigations.
References
- 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://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
Get alerted when CVE-2021-27515 or the next vulnerability affects your stack