# CVE-2020-26291: Hostname spoofing in URI.js

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.71%, higher than 78% of CVEs (2026-12-01)
- Published: 2020-12-30T23:40:16.000Z
- Modified: 2026-07-08T06:00:21.997Z
- Also known as: GHSA-3329-pjwv-fjpg
- Weaknesses: CWE-20
- Assigned by: GitHub_M

## Description

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.]

(As written by CVE List.)

## Affected

- medialize URI.js: < 1.19.4
- urijs (npm): before 1.19.4
- uri.js_project uri.js: before 1.19.4

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/medialize/URI.js/security/advisories/GHSA-3329-pjwv-fjpg> (third-party-advisory, web)
- <https://www.npmjs.com/package/urijs> (third-party-advisory, web)
- <https://github.com/medialize/URI.js/releases/tag/v1.19.4> (release-notes, third-party-advisory, web)
- <https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26291> (advisory)
- <https://github.com/medialize/URI.js> (package)
- <https://www.npmjs.com/advisories/1595> (web)

## Sources

- CVE List: [CVE-2020-26291](https://www.cve.org/CVERecord?id=CVE-2020-26291), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3329-pjwv-fjpg](https://github.com/advisories/GHSA-3329-pjwv-fjpg), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-26291](https://nvd.nist.gov/vuln/detail/CVE-2020-26291), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26291 · Whole record: https://cve.day/CVE-2020-26291.json · Rebuilt by cve.day 2026-11-25T22:57:56.623Z
