{"id":"CVE-2021-3647","aliases":["EUVD-2021-1450","GHSA-89gv-h8wf-cg8r","UBUNTU-CVE-2021-3647"],"status":"published","title":"Open Redirect in medialize/URI.js","description":"URI.js is vulnerable to URL Redirection to Untrusted Site","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.0091,"percentile":0.60407,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-601"],"published":"2021-07-16T10:11:17Z","modified":"2026-10-20T10:54:47Z","fixes":[{"ecosystem":"npm","package":"urijs","fixed_in":["1.19.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"urijs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.7"}]}]},{"source":"osv","ecosystem":"npm","package":"urijs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.7"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"node-uri-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.2+dfsg-4","4.2.2+dfsg-5"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-uri-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.0+dfsg-5","4.4.0+dfsg-7"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"node-uri-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.0+dfsg-8"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"node-uri-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.0+dfsg-8"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-uri-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.0+dfsg-9","4.4.0+dfsg-10"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"node-uri-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.0+dfsg-8","4.4.0+dfsg-9"]}],"products":[{"vendor":"medialize","product":"medialize/uri.js"},{"vendor":"uri.js_project","product":"uri.js"}],"references":[{"url":"https://huntr.dev/bounties/1625558772840-medialize/URI.js","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/medialize/URI.js/commit/ac43ca8f80c042f0256fb551ea5203863dec4481","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/medialize/URI.js/security/advisories/GHSA-89gv-h8wf-cg8r","tags":["web"]},{"url":"https://github.com/medialize/URI.js/pull/233","tags":["web"]},{"url":"https://github.com/medialize/URI.js/releases/tag/v1.19.3","tags":["web"]},{"url":"https://github.com/medialize/URI.js/releases/tag/v1.19.4","tags":["web"]},{"url":"https://github.com/medialize/URI.js/releases/tag/v1.19.6","tags":["web"]},{"url":"https://github.com/medialize/URI.js/releases/tag/v1.19.7","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3647","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-89gv-h8wf-cg8r"},{"url":"https://ubuntu.com/security/CVE-2021-3647","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3647","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3647","title":"Open Redirect in medialize/URI.js","description":"URI.js is vulnerable to URL Redirection to Untrusted Site","status":"published","published":"2021-07-16T10:11:17Z","modified":"2024-08-03T17:01:08.296Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-1450","description":"URI.js is vulnerable to URL Redirection to Untrusted Site","status":"published","published":"2021-07-16T10:11:17Z","modified":"2024-08-03T17:01:08Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T03:25:11.953192Z"}],"ghsa":[{"id":"GHSA-89gv-h8wf-cg8r","title":"URIjs Vulnerable to Hostname spoofing via backslashes in URL ","description":"### Impact\nIf using affected versions to determine a URL's hostname, the hostname can be spoofed by using a combination of backslash (`\\`) and slash (`/`) characters as part of the scheme delimiter, e.g. `scheme:/\\/\\/\\hostname`. If the hostname is used in security decisions, the decision may be incorrect.\n\nDepending on library usage and attacker intent, impacts may include allow/block list bypasses, SSRF attacks, open redirects, or other undesired behavior.\n\nExample URL: `https:/\\/\\/\\expected-example.com/path`\nEscaped string: `https:/\\\\/\\\\/\\\\expected-example.com/path` (JavaScript strings must escape backslash)\n\nAffected versions incorrectly return no hostname. Patched versions correctly return `expected-example.com`. Patched versions match the behavior of other parsers which implement the [WHATWG URL specification](https://url.spec.whatwg.org/), including web browsers and [Node's built-in URL class](https://nodejs.org/api/url.html).\n\n### Patches\nVersion 1.19.7 is patched against all known payload variants.\n\n### References\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.7 (fix for this particular bypass)\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.6 (fix for related bypass)\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.4 (fix for related bypass)\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.3 (fix for related bypass)\n[PR #233](https://github.com/medialize/URI.js/pull/233) (initial fix for backslash handling)\n\n### For more information\nIf you have any questions or comments about this advisory, open an issue in https://github.com/medialize/URI.js\n\n### Reporter credit\n[ready-research](https://github.com/ready-research) via https://huntr.dev/","status":"published","published":"2021-07-19T21:22:36Z","modified":"2023-09-07T20:18:00Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:37:03.287418Z"}],"nvd":[{"id":"CVE-2021-3647","description":"URI.js is vulnerable to URL Redirection to Untrusted Site","status":"published","published":"2021-07-16T11:15:11.383Z","modified":"2026-06-17T04:05:30.19Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:06:55.747384Z"}],"osv":[{"id":"CVE-2021-3647","description":"URI.js is vulnerable to URL Redirection to Untrusted Site","status":"published","published":"2021-07-16T11:15:11.383Z","modified":"2026-10-20T10:54:47.76050008Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:20.434873Z"},{"id":"GHSA-89gv-h8wf-cg8r","title":"URIjs Vulnerable to Hostname spoofing via backslashes in URL ","description":"### Impact\nIf using affected versions to determine a URL's hostname, the hostname can be spoofed by using a combination of backslash (`\\`) and slash (`/`) characters as part of the scheme delimiter, e.g. `scheme:/\\/\\/\\hostname`. If the hostname is used in security decisions, the decision may be incorrect.\n\nDepending on library usage and attacker intent, impacts may include allow/block list bypasses, SSRF attacks, open redirects, or other undesired behavior.\n\nExample URL: `https:/\\/\\/\\expected-example.com/path`\nEscaped string: `https:/\\\\/\\\\/\\\\expected-example.com/path` (JavaScript strings must escape backslash)\n\nAffected versions incorrectly return no hostname. Patched versions correctly return `expected-example.com`. Patched versions match the behavior of other parsers which implement the [WHATWG URL specification](https://url.spec.whatwg.org/), including web browsers and [Node's built-in URL class](https://nodejs.org/api/url.html).\n\n### Patches\nVersion 1.19.7 is patched against all known payload variants.\n\n### References\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.7 (fix for this particular bypass)\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.6 (fix for related bypass)\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.4 (fix for related bypass)\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.3 (fix for related bypass)\n[PR #233](https://github.com/medialize/URI.js/pull/233) (initial fix for backslash handling)\n\n### For more information\nIf you have any questions or comments about this advisory, open an issue in https://github.com/medialize/URI.js\n\n### Reporter credit\n[ready-research](https://github.com/ready-research) via https://huntr.dev/","status":"published","published":"2021-07-19T21:22:36Z","modified":"2023-11-08T04:06:14.577916Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T15:46:42.077781Z"},{"id":"UBUNTU-CVE-2021-3647","description":"URI.js is vulnerable to URL Redirection to Untrusted Site","status":"published","published":"2021-07-16T11:15:00Z","modified":"2026-10-17T12:56:20.47214782Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:27.870979Z"}]}}
