Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/url-parse@1.1.4
purl pkg:npm/url-parse@1.1.4
Next non-vulnerable version 1.5.9
Latest non-vulnerable version 1.5.9
Risk 4.5
Vulnerabilities affecting this package (8)
Vulnerability Summary Fixed by
VCID-8ej8-ebkt-jbgt
Aliases:
CVE-2022-0639
GHSA-8v38-pw62-9cw2
url-parse Incorrectly parses URLs that include an '@' A specially crafted URL with an '@' sign but empty user info and no hostname, when parsed with url-parse, url-parse will return the incorrect href. In particular, ```js parse(\"http://@/127.0.0.1\") ``` Will return: ```yaml { slashes: true, protocol: 'http:', hash: '', query: '', pathname: '/127.0.0.1', auth: '', host: '', port: '', hostname: '', password: '', username: '', origin: 'null', href: 'http:///127.0.0.1' } ``` If the 'hostname' or 'origin' attributes of the output from url-parse are used in security decisions and the final 'href' attribute of the output is then used to make a request, the decision may be incorrect.
1.5.7
Affected by 2 other vulnerabilities.
VCID-9z72-97nn-7bcq
Aliases:
CVE-2021-27515
GHSA-9m6j-fcg5-2442
1.5.0
Affected by 5 other vulnerabilities.
VCID-dc9r-szv3-xfbs
Aliases:
CVE-2020-8124
GHSA-46c4-8wrp-j99v
Improper Validation and Sanitization in url-parse Insufficient validation and sanitization of user input exists in url-parse npm package version 1.4.4 and earlier may allow attacker to bypass security checks.
1.4.5
Affected by 6 other vulnerabilities.
VCID-huzt-k8u7-nqg2
Aliases:
CVE-2018-3774
GHSA-pv4c-p2j5-38j4
Open Redirect in url-parse Versions of `url-parse` before 1.4.3 returns the wrong hostname which could lead to Open Redirect, Server Side Request Forgery (SSRF), or Bypass Authentication Protocol vulnerabilities.
1.4.3
Affected by 7 other vulnerabilities.
VCID-krjz-1bkd-wuhb
Aliases:
CVE-2022-0691
GHSA-jf5r-8hm2-f872
url-parse incorrectly parses hostname / protocol due to unstripped leading control characters. Leading control characters in a URL are not stripped when passed into url-parse. This can cause input URLs to be mistakenly be interpreted as a relative URL without a hostname and protocol, while the WHATWG URL parser will trim control characters and treat it as an absolute URL. If url-parse is used in security decisions involving the hostname / protocol, and the input URL is used in a client which uses the WHATWG URL parser, the decision may be incorrect. This can also lead to a cross-site scripting (XSS) vulnerability if url-parse is used to check for the javascript: protocol in URLs. See following example: ```js const parse = require('url-parse') const express = require('express') const app = express() const port = 3000 url = parse(\"\\bjavascript:alert(1)\") console.log(url) app.get('/', (req, res) => { if (url.protocol !== \"javascript:\") {res.send(\"<a href=\\'\" + url.href + \"\\'>CLICK ME!</a>\")} }) app.listen(port, () => { console.log(`Example app listening on port ${port}`) }) ```
1.5.9
Affected by 0 other vulnerabilities.
VCID-p8fx-59jj-wkhm
Aliases:
CVE-2022-0512
GHSA-rqff-837h-mm52
Authorization bypass in url-parse Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.6.
1.5.6
Affected by 3 other vulnerabilities.
VCID-qj9b-d6tc-8qhz
Aliases:
CVE-2021-3664
GHSA-hh27-ffr2-f2jc
Open redirect in url-parse Depending on library usage and attacker intent, impacts may include allow/block list bypasses, SSRF attacks, open redirects, or other undesired behavior.
1.5.2
Affected by 4 other vulnerabilities.
VCID-v87c-rf2e-syet
Aliases:
CVE-2022-0686
GHSA-hgjh-723h-mx2j
Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.8.
1.5.8
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-01T06:31:07.844339+00:00 GitLab Importer Affected by VCID-krjz-1bkd-wuhb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/url-parse/CVE-2022-0691.yml 38.6.0
2026-06-01T06:31:02.610050+00:00 GitLab Importer Affected by VCID-v87c-rf2e-syet https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/url-parse/CVE-2022-0686.yml 38.6.0
2026-06-01T06:30:59.090002+00:00 GitLab Importer Affected by VCID-8ej8-ebkt-jbgt https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/url-parse/CVE-2022-0639.yml 38.6.0
2026-06-01T06:30:39.859461+00:00 GitLab Importer Affected by VCID-p8fx-59jj-wkhm https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/url-parse/CVE-2022-0512.yml 38.6.0
2026-06-01T06:25:30.337356+00:00 GitLab Importer Affected by VCID-dc9r-szv3-xfbs https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/url-parse/CVE-2020-8124.yml 38.6.0
2026-06-01T06:14:33.040830+00:00 GitLab Importer Affected by VCID-qj9b-d6tc-8qhz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/url-parse/CVE-2021-3664.yml 38.6.0
2026-06-01T06:07:42.082384+00:00 GitLab Importer Affected by VCID-9z72-97nn-7bcq https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/url-parse/CVE-2021-27515.yml 38.6.0
2026-05-31T09:48:58.244869+00:00 GitLab Importer Affected by VCID-huzt-k8u7-nqg2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/url-parse/CVE-2018-3774.yml 38.6.0