{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 9.8, "attackVector": "NETWORK", "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"medium\"}"}}}], "affected": [{"vendor": "canonical", "product": "node-url-parse", "versions": [{"status": "affected", "version": "0", "lessThan": "1.2.0-1ubuntu0.1", "versionType": "custom"}], "platforms": ["bionic"], "defaultStatus": "unaffected"}, {"vendor": "canonical", "product": "node-url-parse", "versions": [{"status": "affected", "version": "0", "lessThan": "1.4.7-3ubuntu0.1", "versionType": "custom"}], "platforms": ["focal"], "defaultStatus": "unaffected"}, {"vendor": "canonical", "product": "node-url-parse", "versions": [{"status": "affected", "version": "0", "lessThan": "1.0.5-2ubuntu0.1~esm2", "versionType": "custom"}], "platforms": ["xenial"], "defaultStatus": "unaffected"}, {"vendor": "unknown", "product": "unknown", "defaultStatus": "unknown"}], "references": [{"url": "https://ubuntu.com/security/CVE-2022-0691"}, {"url": "https://ubuntu.com/security/notices/USN-5973-1"}, {"url": "https://www.cve.org/CVERecord?id=CVE-2022-0691"}], "descriptions": [{"lang": "en", "value": "Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.9."}, {"lang": "en", "value": "not defined"}], "providerMetadata": {"orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc", "shortName": "canonical", "dateUpdated": "2022-02-21T09:15:00Z", "x_subShortName": "canonical"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"not yet assigned\"}"}}}], "affected": [{"vendor": "debian", "product": "node-url-parse", "versions": [{"status": "affected", "version": "0", "lessThan": "1.5.9+~1.4.8-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2022-0691"}], "descriptions": [{"lang": "en", "value": "Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.9."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2023-02-23T00:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV3_0": {"scope": "UNCHANGED", "version": "3.0", "baseScore": 6.5, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "npm", "product": "url-parse", "versions": [{"status": "affected", "version": "0.1.0", "lessThan": "1.5.9", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/github/advisory-database/pull/6765"}, {"url": "https://github.com/unshiftio/url-parse"}, {"url": "https://github.com/unshiftio/url-parse/commit/0e3fb542d60ddbf6933f22eb9b1e06e25eaa5b63"}, {"url": "https://huntr.dev/bounties/57124ed5-4b68-4934-8325-2c546257f2e4"}, {"url": "https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-0691"}, {"url": "https://security.netapp.com/advisory/ntap-20220325-0006"}], "descriptions": [{"lang": "en", "value": "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```"}, {"lang": "en", "value": "url-parse incorrectly parses hostname / protocol due to unstripped leading control characters."}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2022-02-22T00:00:30Z", "x_subShortName": "npm"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 7.5, "accessVector": "NETWORK", "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "LOW", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"format": "CVSS", "cvssV3_0": {"scope": "UNCHANGED", "version": "3.0", "baseScore": 6.5, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"format": "CVSS", "cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 9.8, "attackVector": "NETWORK", "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}], "affected": [{"cpes": ["cpe:2.3:a:url-parse_project:url-parse:*:*:*:*:*:node.js:*:*"], "vendor": "url-parse_project", "product": "url-parse", "versions": [{"status": "affected", "version": "0", "lessThan": "1.5.9", "versionType": "custom"}], "platforms": ["node.js"], "defaultStatus": "unaffected"}], "references": [{"url": "https://huntr.dev/bounties/57124ed5-4b68-4934-8325-2c546257f2e4", "tags": ["exploit", "patch", "third-party-advisory"]}, {"url": "https://github.com/unshiftio/url-parse/commit/0e3fb542d60ddbf6933f22eb9b1e06e25eaa5b63", "tags": ["patch", "third-party-advisory"]}, {"url": "https://security.netapp.com/advisory/ntap-20220325-0006/", "tags": ["third-party-advisory"]}, {"url": "https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html"}], "descriptions": [{"lang": "en", "value": "Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.9."}, {"lang": "es", "value": "Una Omisión de Autorización Mediante la Clave Controlada por el Usuario en NPM url-parse versiones anteriores a 1.5.9"}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-639", "description": "CWE-639"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2022-02-21T09:15:07Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2022-0691", "state": "PUBLISHED", "dateUpdated": "2024-11-21T06:39:11Z", "assignerOrgId": "c09c270a-b464-47c1-9133-acb35b22c19a", "datePublished": "2022-02-21T09:15:07Z", "assignerShortName": "@huntrdev"}, "dataVersion": "5.0"}