{"id":"CVE-2022-0639","aliases":["CVE-2022-0639","GHSA-8v38-pw62-9cw2"],"related":[],"kind":"vulnerability","state":"published","title":"Authorization Bypass Through User-Controlled Key in unshiftio/url-parse","summary":"Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.7.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.7.","source":"cvelist"},{"lang":"en","text":"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,\n\n```js\nparse(\\\"http://@/127.0.0.1\\\")\n```\nWill return:\n```yaml\n{\n slashes: true,\n protocol: 'http:',\n hash: '',\n query: '',\n pathname: '/127.0.0.1',\n auth: '',\n host: '',\n port: '',\n hostname: '',\n password: '',\n username: '',\n origin: 'null',\n href: 'http:///127.0.0.1'\n }\n```\nIf 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una Omisión de Autorización Mediante la Clave Controlada por el Usuario en NPM url-parse versiones anteriores a 1.5.7","source":"nvd"}],"published":"2022-02-17T00:00:00.000Z","modified":"2026-06-17T04:20:59.020Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-639"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.5.7","status":"affected"}],"vendor":"unshiftio","product":"unshiftio/url-parse","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.5.7"}],"ecosystem":"npm","package":"url-parse","purl":"pkg:npm/url-parse","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.5.7"}],"vendor":"url-parse_project","product":"url-parse","cpe":"cpe:2.3:a:url-parse_project:url-parse:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/83a6bc9a-b542-4a38-82cd-d995a1481155","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/unshiftio/url-parse/commit/ef45a1355375a8244063793a19059b4f62fc8788","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00024.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0639","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/unshiftio/url-parse","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0639","url":"https://www.cve.org/CVERecord?id=CVE-2022-0639","licence":"CVE Terms of Use","modified":"2025-12-16T17:06:51.608Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8v38-pw62-9cw2","url":"https://github.com/advisories/GHSA-8v38-pw62-9cw2","licence":"CC-BY-4.0","modified":"2026-02-22T22:58:34.619Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0639","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0639","licence":"Public domain","modified":"2026-06-17T04:20:59.020Z"}],"updatedAt":"2026-11-25T22:58:09.736Z","epss":{"score":0.01535,"percentile":0.75618,"date":"2026-12-02T12:00:21.000Z"}}