{"id":"CVE-2022-0691","aliases":["DEBIAN-CVE-2022-0691","GHSA-jf5r-8hm2-f872","UBUNTU-CVE-2022-0691"],"summary":"Authorization Bypass Through User-Controlled Key in unshiftio/url-parse","published_at":"2022-02-21T00:00:00Z","modified_at":"2026-11-18T06:00:17.816402Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.022199999541044235,"percentile":0.8305299878120422,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.9.","affected_stack":[{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-grafana-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.1","package":"servicemesh-grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.1","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"unshiftio/unshiftio/url-parse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9"}]}],"fixed":["1.5.9"],"provider":"cvelistv5","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Debian:10","package":"node-url-parse","purl":"pkg:deb/debian/node-url-parse?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-2+deb10u2"}]}],"versions":["1.2.0-2","1.2.0-2+deb10u1"],"fixed":["1.2.0-2+deb10u2"],"provider":"osv","source":"DLA-3336-1","relation":"upstream"},{"ecosystem":"Debian:12","package":"node-url-parse","purl":"pkg:deb/debian/node-url-parse?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9+~1.4.8-1"}]}],"fixed":["1.5.9+~1.4.8-1"],"provider":"osv","source":"DEBIAN-CVE-2022-0691","relation":"self"},{"ecosystem":"Debian:13","package":"node-url-parse","purl":"pkg:deb/debian/node-url-parse?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9+~1.4.8-1"}]}],"fixed":["1.5.9+~1.4.8-1"],"provider":"osv","source":"DEBIAN-CVE-2022-0691","relation":"self"},{"ecosystem":"Debian:14","package":"node-url-parse","purl":"pkg:deb/debian/node-url-parse?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9+~1.4.8-1"}]}],"fixed":["1.5.9+~1.4.8-1"],"provider":"osv","source":"DEBIAN-CVE-2022-0691","relation":"self"},{"ecosystem":"NVD","package":"url-parse_project:url-parse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9"}]}],"fixed":["1.5.9"],"provider":"nvd","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"TuxCare:npm","package":"url-parse","purl":"pkg:npm/url-parse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.4.7-tuxcare.0"},{"fixed":"1.4.7-tuxcare.1"}]}],"versions":["1.4.7"],"fixed":["1.4.7-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1776904628","relation":"upstream"},{"ecosystem":"Ubuntu:18.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse@1.2.0-1ubuntu0.1?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-1ubuntu0.1"}]}],"versions":["1.0.5-2","1.2.0-1"],"fixed":["1.2.0-1ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2022-0691","relation":"self"},{"ecosystem":"Ubuntu:18.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-1ubuntu0.1"}]}],"versions":["1.0.5-2","1.2.0-1"],"fixed":["1.2.0-1ubuntu0.1"],"provider":"osv","source":"USN-5973-1","relation":"upstream"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse@1.4.7-3ubuntu0.1?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.7-3ubuntu0.1"}]}],"versions":["1.4.7-3"],"fixed":["1.4.7-3ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2022-0691","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.7-3ubuntu0.1"}]}],"versions":["1.4.7-3"],"fixed":["1.4.7-3ubuntu0.1"],"provider":"osv","source":"USN-5973-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse@1.0.5-2ubuntu0.1~esm2?arch=source&distro=esm-apps/xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5-2ubuntu0.1~esm2"}]}],"versions":["1.0.5-1","1.0.5-2"],"fixed":["1.0.5-2ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2022-0691","relation":"self"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse?arch=source&distro=esm-apps%2Fxenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5-2ubuntu0.1~esm2"}]}],"versions":["1.0.5-1","1.0.5-2"],"fixed":["1.0.5-2ubuntu0.1~esm2"],"provider":"osv","source":"USN-5973-1","relation":"upstream"},{"ecosystem":"npm","package":"url-parse","purl":"pkg:npm/url-parse","ranges":[{"type":"SEMVER","events":[{"introduced":"0.1.0"},{"fixed":"1.5.9"}]}],"fixed":["1.5.9"],"provider":"osv","source":"GHSA-jf5r-8hm2-f872","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"8Base-RHMTC-1.7","cpe":"cpe:/a:redhat:rhmt:1.7::el8","status":"fixed","packages":["rhmtc/openshift-migration-ui-rhel8"],"package_count":1,"fixed":[],"advisories":["RHSA-2022:6429"],"provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"8Base-RHMTC-1.7","cpe":"cpe:/a:redhat:rhmt:1.7::el8","status":"not_affected","packages":["rhmtc/openshift-migration-controller-rhel8","rhmtc/openshift-migration-hook-runner-rhel8","rhmtc/openshift-migration-legacy-rhel8-operator","rhmtc/openshift-migration-log-reader-rhel8","rhmtc/openshift-migration-must-gather-rhel8","rhmtc/openshift-migration-openvpn-rhel8","rhmtc/openshift-migration-operator-bundle","rhmtc/openshift-migration-registry-rhel8","rhmtc/openshift-migration-rhel8-operator","rhmtc/openshift-migration-rsync-transfer-rhel8","rhmtc/openshift-migration-velero-plugin-for-aws-rhel8","rhmtc/openshift-migration-velero-plugin-for-gcp-rhel8","rhmtc/openshift-migration-velero-plugin-for-microsoft-azure-rhel8","rhmtc/openshift-migration-velero-restic-restore-helper-rhel8","rhmtc/openshift-migration-velero-rhel8","rhmtc/openshift-velero-plugin-rhel8"],"package_count":16,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"affected","packages":["servicemesh-grafana","servicemesh-grafana-prometheus","servicemesh-prometheus"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.1","cpe":"cpe:/a:redhat:service_mesh:2.1","status":"affected","packages":["servicemesh-grafana","servicemesh-prometheus"],"package_count":2,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"under_investigation","packages":["url-parse"],"package_count":1,"fixed":[],"advisories":[],"provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"affected","packages":["quay/quay-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"Red Hat Virtualization 4","cpe":"cpe:/a:redhat:rhev_manager:4","status":"not_affected","packages":["url-parse"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-0691"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2022-1401","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2022-1401","license":"TLP:CLEAR, mirroring permitted","published_at":"2022-09-12T22:00:00Z","modified_at":"2025-12-16T23:00:00Z","summary":"Red Hat OpenShift (Migration Toolkit for Containers): Mehrere Schwachstellen","details":"Ein entfernter, anonymer, authentisierter oder lokaler Angreifer kann mehrere Schwachstellen in Red Hat OpenShift ausnutzen, um Sicherheitsmaßnahmen zu umgehen und vertrauliche Informationen offenzulegen.\n\nRed Hat OpenShift ist eine \"Platform as a Service\" (PaaS) Lösung zur Bereitstellung von Applikationen in der Cloud.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2022-1401"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-1401.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2022-1401"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:6429"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00024.html"}]},{"provider":"osv","source_id":"CLSA-2026-1776904628","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1776904628","published_at":"2026-08-04T14:52:27Z","modified_at":"2026-10-15T09:45:46.40949Z","summary":"TuxCare security update for url-parse (6 CVEs)","details":"TuxCare rebuilt url-parse to address 6 CVEs. Fixed in 1.4.7-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"url-parse","purl":"pkg:npm/url-parse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.4.7-tuxcare.0"},{"fixed":"1.4.7-tuxcare.1"}]}],"versions":["1.4.7"],"fixed":["1.4.7-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1776904628","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DLA-3336-1","relation":"upstream","url":"https://osv.dev/vulnerability/DLA-3336-1","published_at":"2023-02-23T00:00:00Z","modified_at":"2026-11-20T01:15:17.693621Z","summary":"node-url-parse - security update","severity":[],"affected":[{"ecosystem":"Debian:10","package":"node-url-parse","purl":"pkg:deb/debian/node-url-parse?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-2+deb10u2"}]}],"versions":["1.2.0-2","1.2.0-2+deb10u1"],"fixed":["1.2.0-2+deb10u2"],"provider":"osv","source":"DLA-3336-1","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"USN-5973-1","relation":"upstream","url":"https://osv.dev/vulnerability/USN-5973-1","license":"CC-BY-SA-4.0","published_at":"2023-03-27T14:59:16Z","modified_at":"2026-06-25T13:31:55.291914Z","summary":"node-url-parse vulnerabilities","details":"It was discovered that url-parse incorrectly handled certain inputs. If a\nuser or an automated system were tricked into opening a specially crafted\ninput file, a remote attacker could possibly use this issue to cause a\ndenial of service, or to perform a server-side request forgery attack or open\nredirect attack. (CVE-2018-3774)\n\nIt was discovered that url-parse incorrectly handled certain inputs. If a\nuser or an automated system were tricked into opening a specially crafted\ninput file, a remote attacker could possibly use this issue to bypass input\nvalidation. This issue was only fixed in Ubuntu 18.04 LTS and\nUbuntu 20.04 LTS. (CVE-2020-8124)\n\nYaniv Nizry discovered that url-parse incorrectly handled certain inputs.\nIf a user or an automated system were tricked into opening a specially crafted\ninput file, a remote attacker could possibly use this issue to cause a\ndenial of service, or to perform a server-side request forgery attack or open\nredirect attack. This issue was only fixed in Ubuntu 18.04 LTS and\nUbuntu 20.04 LTS. (CVE-2021-27515)\n\nIt was discovered that url-parse incorrectly handled certain inputs.\nIf a user or an automated system were tricked into opening a specially crafted\ninput file, a remote attacker could possibly use this issue to cause a\ndenial of service, or to perform a server-side request forgery attack or open\nredirect attack. This issue was only fixed in Ubuntu 18.04 LTS and\nUbuntu 20.04 LTS. (CVE-2021-3664)\n\nIt was discovered that url-parse incorrectly handled certain inputs. If a\nuser or an automated system were tricked into opening a specially crafted\ninput file, a remote attacker could possibly use this issue to bypass\nauthorization. This issue was only fixed in Ubuntu 18.04 LTS and\nUbuntu 20.04 LTS. (CVE-2022-0512, CVE-2022-0639, CVE-2022-0691)\n\nRohan Sharma discovered that url-parse incorrectly handled certain inputs.\nIf a user or an automated system were tricked into opening a specially crafted\ninput file, a remote attacker could possibly use this issue to bypass\nauthorization. This issue was only fixed in Ubuntu 18.04 LTS and\nUbuntu 20.04 LTS. (CVE-2022-0686)","severity":[],"affected":[{"ecosystem":"Ubuntu:18.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-1ubuntu0.1"}]}],"versions":["1.0.5-2","1.2.0-1"],"fixed":["1.2.0-1ubuntu0.1"],"provider":"osv","source":"USN-5973-1","relation":"upstream"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.7-3ubuntu0.1"}]}],"versions":["1.4.7-3"],"fixed":["1.4.7-3ubuntu0.1"],"provider":"osv","source":"USN-5973-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse?arch=source&distro=esm-apps%2Fxenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5-2ubuntu0.1~esm2"}]}],"versions":["1.0.5-1","1.0.5-2"],"fixed":["1.0.5-2ubuntu0.1~esm2"],"provider":"osv","source":"USN-5973-1","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5973-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-3774"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-8124"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3664"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-27515"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-0512"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-0639"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-0686"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-0691"}]},{"provider":"cvelistv5","source_id":"CVE-2022-0691","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-0691","license":"CC-BY-4.0","published_at":"2022-02-21T00:00:00Z","modified_at":"2024-08-02T23:40:03.252Z","summary":"Authorization Bypass Through User-Controlled Key in unshiftio/url-parse","details":"Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.9.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"CVE-2022-0691"}],"affected":[{"ecosystem":"CVE","package":"unshiftio/unshiftio/url-parse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9"}]}],"fixed":["1.5.9"],"provider":"cvelistv5","source":"CVE-2022-0691","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://huntr.dev/bounties/57124ed5-4b68-4934-8325-2c546257f2e4"},{"type":"WEB","url":"https://github.com/unshiftio/url-parse/commit/0e3fb542d60ddbf6933f22eb9b1e06e25eaa5b63"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220325-0006/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html"}]},{"provider":"nvd","source_id":"CVE-2022-0691","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0691","severity":[],"affected":[{"ecosystem":"NVD","package":"url-parse_project:url-parse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9"}]}],"fixed":["1.5.9"],"provider":"nvd","source":"CVE-2022-0691","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2022-0691","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-0691","published_at":"2022-02-21T09:15:07.297Z","modified_at":"2026-11-18T06:00:17.816402Z","details":"Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.9.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"DEBIAN-CVE-2022-0691"}],"affected":[{"ecosystem":"Debian:12","package":"node-url-parse","purl":"pkg:deb/debian/node-url-parse?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9+~1.4.8-1"}]}],"fixed":["1.5.9+~1.4.8-1"],"provider":"osv","source":"DEBIAN-CVE-2022-0691","relation":"self"},{"ecosystem":"Debian:13","package":"node-url-parse","purl":"pkg:deb/debian/node-url-parse?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9+~1.4.8-1"}]}],"fixed":["1.5.9+~1.4.8-1"],"provider":"osv","source":"DEBIAN-CVE-2022-0691","relation":"self"},{"ecosystem":"Debian:14","package":"node-url-parse","purl":"pkg:deb/debian/node-url-parse?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.9+~1.4.8-1"}]}],"fixed":["1.5.9+~1.4.8-1"],"provider":"osv","source":"DEBIAN-CVE-2022-0691","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-0691"}]},{"provider":"osv","source_id":"GHSA-jf5r-8hm2-f872","relation":"self","url":"https://osv.dev/vulnerability/GHSA-jf5r-8hm2-f872","license":"CC-BY-4.0","published_at":"2022-02-22T00:00:30Z","modified_at":"2026-02-03T22:19:28.188485Z","summary":"url-parse incorrectly parses hostname / protocol due to unstripped leading control characters.","details":"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.\n\nIf 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.\n\nThis 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:\n```js\nconst parse = require('url-parse')\nconst express = require('express')\nconst app = express()\nconst port = 3000\n\nurl = parse(\\\"\\\\bjavascript:alert(1)\\\")\n\nconsole.log(url)\n\napp.get('/', (req, res) => {\n if (url.protocol !== \\\"javascript:\\\") {res.send(\\\"<a href=\\\\'\\\" + url.href + \\\"\\\\'>CLICK ME!</a>\\\")}\n })\n\napp.listen(port, () => {\n console.log(`Example app listening on port ${port}`)\n })\n```","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"GHSA-jf5r-8hm2-f872"}],"affected":[{"ecosystem":"npm","package":"url-parse","purl":"pkg:npm/url-parse","ranges":[{"type":"SEMVER","events":[{"introduced":"0.1.0"},{"fixed":"1.5.9"}]}],"fixed":["1.5.9"],"provider":"osv","source":"GHSA-jf5r-8hm2-f872","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0691"},{"type":"WEB","url":"https://github.com/github/advisory-database/pull/6765"},{"type":"WEB","url":"https://github.com/unshiftio/url-parse/commit/0e3fb542d60ddbf6933f22eb9b1e06e25eaa5b63"},{"type":"PACKAGE","url":"https://github.com/unshiftio/url-parse"},{"type":"WEB","url":"https://huntr.dev/bounties/57124ed5-4b68-4934-8325-2c546257f2e4"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220325-0006"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2022-0691","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2022-0691","license":"CC-BY-SA-4.0","published_at":"2022-02-21T09:15:00Z","modified_at":"2026-02-04T02:59:58.640151Z","details":"Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.9.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2022-0691"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"UBUNTU-CVE-2022-0691"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2022-0691"}],"affected":[{"ecosystem":"Ubuntu:18.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse@1.2.0-1ubuntu0.1?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-1ubuntu0.1"}]}],"versions":["1.0.5-2","1.2.0-1"],"fixed":["1.2.0-1ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2022-0691","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse@1.4.7-3ubuntu0.1?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.7-3ubuntu0.1"}]}],"versions":["1.4.7-3"],"fixed":["1.4.7-3ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2022-0691","relation":"self"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"node-url-parse","purl":"pkg:deb/ubuntu/node-url-parse@1.0.5-2ubuntu0.1~esm2?arch=source&distro=esm-apps/xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5-2ubuntu0.1~esm2"}]}],"versions":["1.0.5-1","1.0.5-2"],"fixed":["1.0.5-2ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2022-0691","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-0691"},{"type":"REPORT","url":"https://huntr.dev/bounties/57124ed5-4b68-4934-8325-2c546257f2e4"},{"type":"REPORT","url":"https://github.com/unshiftio/url-parse/commit/0e3fb542d60ddbf6933f22eb9b1e06e25eaa5b63"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5973-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-0691"}]},{"provider":"redhat-vex","source_id":"CVE-2022-0691","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-0691","license":"CC-BY-4.0","published_at":"2022-02-21T00:00:00Z","modified_at":"2023-09-01T03:03:09Z","summary":"npm-url-parse: authorization bypass through user-controlled key","details":"An authorization bypass flaw was found in url-parse. This flaw allows a local unauthenticated attacker to add a backspace character (\\b) while submitting a URL. This vulnerability can enable bypassing any hostname checks.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2022-0691"},{"type":"Red Hat","score":"Important","source":"CVE-2022-0691"}],"affected":[{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-grafana-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.1","package":"servicemesh-grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.1","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-0691","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"8Base-RHMTC-1.7","cpe":"cpe:/a:redhat:rhmt:1.7::el8","status":"fixed","packages":["rhmtc/openshift-migration-ui-rhel8"],"package_count":1,"fixed":[],"advisories":["RHSA-2022:6429"],"provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"8Base-RHMTC-1.7","cpe":"cpe:/a:redhat:rhmt:1.7::el8","status":"not_affected","packages":["rhmtc/openshift-migration-controller-rhel8","rhmtc/openshift-migration-hook-runner-rhel8","rhmtc/openshift-migration-legacy-rhel8-operator","rhmtc/openshift-migration-log-reader-rhel8","rhmtc/openshift-migration-must-gather-rhel8","rhmtc/openshift-migration-openvpn-rhel8","rhmtc/openshift-migration-operator-bundle","rhmtc/openshift-migration-registry-rhel8","rhmtc/openshift-migration-rhel8-operator","rhmtc/openshift-migration-rsync-transfer-rhel8","rhmtc/openshift-migration-velero-plugin-for-aws-rhel8","rhmtc/openshift-migration-velero-plugin-for-gcp-rhel8","rhmtc/openshift-migration-velero-plugin-for-microsoft-azure-rhel8","rhmtc/openshift-migration-velero-restic-restore-helper-rhel8","rhmtc/openshift-migration-velero-rhel8","rhmtc/openshift-velero-plugin-rhel8"],"package_count":16,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"affected","packages":["servicemesh-grafana","servicemesh-grafana-prometheus","servicemesh-prometheus"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.1","cpe":"cpe:/a:redhat:service_mesh:2.1","status":"affected","packages":["servicemesh-grafana","servicemesh-prometheus"],"package_count":2,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"under_investigation","packages":["url-parse"],"package_count":1,"fixed":[],"advisories":[],"provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"affected","packages":["quay/quay-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-0691"},{"vendor":"Red Hat","product":"Red Hat Virtualization 4","cpe":"cpe:/a:redhat:rhev_manager:4","status":"not_affected","packages":["url-parse"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-0691"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-0691.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-0691"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2060020"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-0691"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0691"}]}],"references":[{"type":"WEB","url":"https://huntr.dev/bounties/57124ed5-4b68-4934-8325-2c546257f2e4"},{"type":"WEB","url":"https://github.com/unshiftio/url-parse/commit/0e3fb542d60ddbf6933f22eb9b1e06e25eaa5b63"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220325-0006/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-0691"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0691"},{"type":"WEB","url":"https://github.com/github/advisory-database/pull/6765"},{"type":"PACKAGE","url":"https://github.com/unshiftio/url-parse"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220325-0006"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-0691"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5973-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-0691"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-0691.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-0691"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2060020"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2022-1401","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2022-1401","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-12-16T23:00:00Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1776904628","url":"https://osv.dev/vulnerability/CLSA-2026-1776904628","modified_at":"2026-10-15T09:45:46.40949Z","relation":"upstream"},{"provider":"osv","source_id":"DLA-3336-1","url":"https://osv.dev/vulnerability/DLA-3336-1","modified_at":"2026-11-20T01:15:17.693621Z","relation":"upstream"},{"provider":"osv","source_id":"USN-5973-1","url":"https://osv.dev/vulnerability/USN-5973-1","license":"CC-BY-SA-4.0","modified_at":"2026-06-25T13:31:55.291914Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2022-0691","url":"https://www.cve.org/CVERecord?id=CVE-2022-0691","license":"CC-BY-4.0","modified_at":"2024-08-02T23:40:03.252Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-0691","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0691","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2022-0691","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-0691","modified_at":"2026-11-18T06:00:17.816402Z","relation":"self"},{"provider":"osv","source_id":"GHSA-jf5r-8hm2-f872","url":"https://osv.dev/vulnerability/GHSA-jf5r-8hm2-f872","license":"CC-BY-4.0","modified_at":"2026-02-03T22:19:28.188485Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2022-0691","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2022-0691","license":"CC-BY-SA-4.0","modified_at":"2026-02-04T02:59:58.640151Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-0691","url":"https://access.redhat.com/security/cve/CVE-2022-0691","license":"CC-BY-4.0","modified_at":"2023-09-01T03:03:09Z","relation":"self"}]}
