{"id":"CVE-2020-26291","published":"2020-12-30T23:40:16Z","modified":"2024-08-04T15:56:03Z","title":"Hostname spoofing in URI.js","vendor":"medialize","product":"URI.js","tier":"tail","description":{"text":"URI.js is a javascript URL mutation library (npm package urijs). In URI.js before version 1.19.4, the hostname can be spoofed by using a backslash (`\\`) character followed by an at (`@`) character. If the hostname is used in security decisions, the decision may be incorrect. Depending on library usage and attacker intent, impacts may include allow/block list bypasses, SSRF attacks, open redirects, or other undesired behavior. For example the URL `https://expected-example.com\\@observed-example.com` will incorrectly return `observed-example.com` if using an affected version. Patched versions correctly return `expected-example.com`. Patched versions match the behavior of other parsers which implement the WHATWG URL specification, including web browsers and Node's built-in URL class. Version 1.19.4 is patched against all known payload variants. Version 1.19.3 has a partial patch but is still vulnerable to a payload variant.]","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0171,"percentile":0.77926,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/medialize/URI.js/security/advisories/GHSA-3329-pjwv-fjpg","tags":["x_refsource_CONFIRM"]},{"url":"https://www.npmjs.com/package/urijs","tags":["x_refsource_MISC"]},{"url":"https://github.com/medialize/URI.js/releases/tag/v1.19.4","tags":["x_refsource_MISC"]},{"url":"https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":15.59},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"medialize","affectedVersions":[{"vendor":"medialize","product":"URI.js","versions":["< 1.19.4"]}],"affected":[{"ecosystem":"npm","package":"urijs","vulnerableRanges":["<1.19.4"],"patched":["1.19.4"],"from":["GHSA-3329-pjwv-fjpg"],"provenance":"source"}],"summary":{"text":"Hostname spoofing exists in the URI.js JavaScript URL mutation library (npm package urijs) before version 1.19.4, where a backslash followed by an at sign in a URL causes the parser to report a different hostname than the one intended, which can mislead any security decision that relies on that hostname. An attacker with low privileges over the network can exploit this, without user interaction, to bypass allow/block lists, perform SSRF, or achieve open redirects in applications that use the hostname for such decisions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:52Z"},"euvd":{"id":"EUVD-2020-1476","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-26291","published":"2020-12-30","fixed":"1.19.4","kev":false},{"cve":"CVE-2021-27516","published":"2021-02-21","fixed":"1.19.6","kev":false,"link":{"from":"CVE-2020-26291","to":"CVE-2021-27516","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:urijs","fromFixed":"1.19.4","toFixed":"1.19.6","daysApart":53},{"kind":"same-code","provenance":"machine","files":["src/URI.js"],"commits":["https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155","https://github.com/medialize/URI.js/commit/a1ad8bcbc39a4d136d7e252e76e957f3ece70839"],"basis":"shared file"}]}},{"cve":"CVE-2021-3647","published":"2021-07-16","fixed":"1.19.7","kev":false},{"cve":"CVE-2022-0613","published":"2022-02-16","fixed":"1.19.8","kev":false}],"package":"npm:urijs"}}