{"id":"CVE-2020-26291","aliases":["CVE-2020-26291","GHSA-3329-pjwv-fjpg"],"related":[],"kind":"vulnerability","state":"published","title":"Hostname spoofing in URI.js","summary":"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.]","summarySource":"cvelist","descriptions":[{"lang":"en","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.]","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"URI.js es una biblioteca de mutación de URL de JavaScript (paquete npm urijs).&#xa0;En URI.js versiones anteriores a 1.19.4, el nombre de host puede ser falsificado usando un carácter barra invertida (\"\\\") seguido de un carácter arroba (\"@\").&#xa0;Si el nombre de host es usado en decisiones de seguridad, la decisión puede ser incorrecta.&#xa0;Dependiendo del uso de la biblioteca y la intención del atacante, los impactos pueden incluir omisiones de lista de permisos y bloqueos, ataques SSRF, redireccionamientos abiertos u otros comportamientos no deseados.&#xa0;Por ejemplo, la URL \"https://expected-example.com\\@observed-example.com\" devolverá incorrectamente \"observed-example.com\" si se usa una versión afectada.&#xa0;Las versiones parcheadas devuelven correctamente \"expected-example.com\".&#xa0;Las versiones parcheadas coinciden con el comportamiento de otros analizadores que implementan la especificación de URL WHATWG, incluyendo los navegadores web y la clase URL incorporada de Node.&#xa0;La versión 1.19.4 está parcheada contra todas las variantes de carga útil conocidas. La versión 1.19.3 presenta una ruta parcial pero sigue siendo vulnerable a  una variante de carga útil.","source":"nvd"}],"published":"2020-12-30T23:40:16.000Z","modified":"2026-07-08T06:00:21.997Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"< 1.19.4","status":"affected"}],"vendor":"medialize","product":"URI.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.4"}],"ecosystem":"npm","package":"urijs","purl":"pkg:npm/urijs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.19.4"}],"vendor":"uri.js_project","product":"uri.js","cpe":"cpe:2.3:a:uri.js_project:uri.js:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/medialize/URI.js/security/advisories/GHSA-3329-pjwv-fjpg","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/urijs","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/medialize/URI.js/releases/tag/v1.19.4","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26291","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/medialize/URI.js","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1595","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26291","url":"https://www.cve.org/CVERecord?id=CVE-2020-26291","licence":"CVE Terms of Use","modified":"2024-08-04T15:56:03.814Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3329-pjwv-fjpg","url":"https://github.com/advisories/GHSA-3329-pjwv-fjpg","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:21.997Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26291","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26291","licence":"Public domain","modified":"2026-06-17T03:08:00.733Z"}],"updatedAt":"2026-11-25T22:57:56.623Z","epss":{"score":0.0171,"percentile":0.78046,"date":"2026-12-01T12:00:22.000Z"}}