Description
url-parse before 1.5.0 mishandles certain uses of backslash such as http:\/ and interprets the URI as a relative path.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-url-parse | 1.5.1-1 | — |
| Debian 13 | node-url-parse | 1.5.1-1 | — |
| Debian 12 | node-url-parse | 1.5.1-1 | — |
| Debian 10 | node-url-parse | 1.2.0-2+deb10u2 | DLA-3336-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-url-parse | 1.4.7-3ubuntu0.1 | USN-5973-1 |
| Ubuntu 18.04 LTS | node-url-parse | 1.2.0-1ubuntu0.1 | USN-5973-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | node-url-parse | 1.0.5-2ubuntu0.1~esm2 | USN-5973-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | url-parse | >= 0.1.0, < 1.5.0 | 1.5.0 | GHSA-9m6j-fcg5-2442 |
Advisories 2
- USN-5973-1 node-url-parse vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-3336-1 node-url-parse - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://github.com/unshiftio/url-parse/commit/d1e7e8822f26e8a49794b757123b51386325b2b0
- https://github.com/unshiftio/url-parse/pull/197
- https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.0
- https://advisory.checkmarx.net/advisory/CX-2021-4306
- [debian-lts-announce] 20230223 [SECURITY] [DLA 3336-1] node-url-parse security update mailing-list