{"id":"CVE-2020-26291","aliases":["GHSA-3329-pjwv-fjpg"],"summary":"Hostname spoofing in URI.js","published_at":"2020-12-30T23:40:16Z","modified_at":"2026-07-08T06:00:21.997445Z","products":[],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.017100000753998756,"percentile":0.7785300016403198,"date":"2026-11-19T00:00:00Z"},"priority":7.5,"details":"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.]","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"medialize/URI.js","versions":["< 1.19.4"],"provider":"cvelistv5","source":"CVE-2020-26291","relation":"self"},{"ecosystem":"NVD","package":"uri.js_project:uri.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.4"}]}],"fixed":["1.19.4"],"provider":"nvd","source":"CVE-2020-26291","relation":"self"},{"ecosystem":"npm","package":"urijs","purl":"pkg:npm/urijs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.4"}]}],"fixed":["1.19.4"],"provider":"osv","source":"GHSA-3329-pjwv-fjpg","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"fixed","packages":["quay/quay-rhel8"],"package_count":1,"fixed":[],"advisories":["RHSA-2021:3917"],"provider":"redhat-vex","source":"CVE-2020-26291"},{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"not_affected","packages":["quay/clair-rhel8","quay/quay-bridge-operator-bundle","quay/quay-bridge-operator-rhel8","quay/quay-builder-qemu-rhcos-rhel8","quay/quay-builder-rhel8","quay/quay-container-security-operator-bundle","quay/quay-container-security-operator-rhel8","quay/quay-operator-bundle","quay/quay-operator-rhel8"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-26291"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2020-26291","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2020-26291","license":"CC-BY-4.0","published_at":"2020-12-30T23:40:16Z","modified_at":"2024-08-04T15:56:03.814Z","summary":"Hostname spoofing in URI.js","details":"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.]","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2020-26291"}],"affected":[{"ecosystem":"CVE","package":"medialize/URI.js","versions":["< 1.19.4"],"provider":"cvelistv5","source":"CVE-2020-26291","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/medialize/URI.js/security/advisories/GHSA-3329-pjwv-fjpg"},{"type":"WEB","url":"https://www.npmjs.com/package/urijs"},{"type":"WEB","url":"https://github.com/medialize/URI.js/releases/tag/v1.19.4"},{"type":"WEB","url":"https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155"}]},{"provider":"nvd","source_id":"CVE-2020-26291","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26291","severity":[],"affected":[{"ecosystem":"NVD","package":"uri.js_project:uri.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.4"}]}],"fixed":["1.19.4"],"provider":"nvd","source":"CVE-2020-26291","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-3329-pjwv-fjpg","relation":"self","url":"https://osv.dev/vulnerability/GHSA-3329-pjwv-fjpg","license":"CC-BY-4.0","published_at":"2020-12-30T23:40:48Z","modified_at":"2026-07-08T06:00:21.997445Z","summary":"Hostname spoofing via backslashes in URL","details":"### 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)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","source":"GHSA-3329-pjwv-fjpg"}],"affected":[{"ecosystem":"npm","package":"urijs","purl":"pkg:npm/urijs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.4"}]}],"fixed":["1.19.4"],"provider":"osv","source":"GHSA-3329-pjwv-fjpg","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/medialize/URI.js/security/advisories/GHSA-3329-pjwv-fjpg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26291"},{"type":"WEB","url":"https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155"},{"type":"PACKAGE","url":"https://github.com/medialize/URI.js"},{"type":"WEB","url":"https://github.com/medialize/URI.js/releases/tag/v1.19.4"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1595"},{"type":"WEB","url":"https://www.npmjs.com/package/urijs"}]},{"provider":"redhat-vex","source_id":"CVE-2020-26291","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2020-26291","license":"CC-BY-4.0","published_at":"2020-12-31T00:00:00Z","modified_at":"2021-10-19T14:08:24Z","summary":"urijs: Hostname spoofing via backslashes in URL","details":"A flaw was found in urijs. 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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2020-26291"},{"type":"Red Hat","score":"Moderate","source":"CVE-2020-26291"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"fixed","packages":["quay/quay-rhel8"],"package_count":1,"fixed":[],"advisories":["RHSA-2021:3917"],"provider":"redhat-vex","source":"CVE-2020-26291"},{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"not_affected","packages":["quay/clair-rhel8","quay/quay-bridge-operator-bundle","quay/quay-bridge-operator-rhel8","quay/quay-builder-qemu-rhcos-rhel8","quay/quay-builder-rhel8","quay/quay-container-security-operator-bundle","quay/quay-container-security-operator-rhel8","quay/quay-operator-bundle","quay/quay-operator-rhel8"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-26291"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-26291.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2020-26291"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1915257"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2020-26291"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26291"},{"type":"WEB","url":"https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155"},{"type":"WEB","url":"https://github.com/medialize/URI.js/releases/tag/v1.19.4"},{"type":"WEB","url":"https://github.com/medialize/URI.js/security/advisories/GHSA-3329-pjwv-fjpg"},{"type":"WEB","url":"https://www.npmjs.com/package/urijs"}]}],"references":[{"type":"WEB","url":"https://github.com/medialize/URI.js/security/advisories/GHSA-3329-pjwv-fjpg"},{"type":"WEB","url":"https://www.npmjs.com/package/urijs"},{"type":"WEB","url":"https://github.com/medialize/URI.js/releases/tag/v1.19.4"},{"type":"WEB","url":"https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26291"},{"type":"PACKAGE","url":"https://github.com/medialize/URI.js"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1595"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-26291.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2020-26291"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1915257"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2020-26291"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2020-26291","url":"https://www.cve.org/CVERecord?id=CVE-2020-26291","license":"CC-BY-4.0","modified_at":"2024-08-04T15:56:03.814Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2020-26291","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26291","relation":"self"},{"provider":"osv","source_id":"GHSA-3329-pjwv-fjpg","url":"https://osv.dev/vulnerability/GHSA-3329-pjwv-fjpg","license":"CC-BY-4.0","modified_at":"2026-07-08T06:00:21.997445Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2020-26291","url":"https://access.redhat.com/security/cve/CVE-2020-26291","license":"CC-BY-4.0","modified_at":"2021-10-19T14:08:24Z","relation":"self"}]}
