{"id":"GHSA-3329-pjwv-fjpg","revision":"5594181b96124548a799d84082f36aa9","records":[{"revision":"5594181b96124548a799d84082f36aa9","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-3329-pjwv-fjpg","aliases":["CVE-2020-26291"],"title":"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 backslash (`\\`) character followed by an at (`@`) character. 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\\@observed-example.com`\nEscaped string: `https://expected-example.com\\\\@observed-example.com` (JavaScript strings must escape backslash)\n\nAffected versions incorrectly return `observed-example.com`. 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.4 is patched against all known payload variants. Version 1.19.3 has a partial patch but is still vulnerable to a payload variant.\n\n### References\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.4 (complete fix for this bypass)\nhttps://github.com/medialize/URI.js/releases/tag/v1.19.3 (partial fix for this 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[Alesandro Ortiz](https://AlesandroOrtiz.com)","state":0,"publishedAt":"2020-12-30T23:40:48+00:00","modifiedAt":"2026-07-08T06:00:21.9974454+00:00","affected":[{"ecosystem":"npm","name":"urijs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.19.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/medialize/URI.js/security/advisories/GHSA-3329-pjwv-fjpg","https://nvd.nist.gov/vuln/detail/CVE-2020-26291","https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155","https://github.com/medialize/URI.js","https://github.com/medialize/URI.js/releases/tag/v1.19.4","https://www.npmjs.com/advisories/1595","https://www.npmjs.com/package/urijs"],"sourceUrl":"https://github.com/advisories/GHSA-3329-pjwv-fjpg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3329-pjwv-fjpg","identifiers":["GHSA-3329-pjwv-fjpg","CVE-2020-26291"]},"retained":false,"historicalAffected":[]}],"coverage":[]}