# CVE-2021-27516: URIjs Hostname spoofing via backslashes in URL

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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): 2.51%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-21T23:29:56.000Z
- Modified: 2026-06-17T03:45:00.637Z
- Also known as: GHSA-p6j9-7xhc-rhwp
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

URI.js (aka urijs) before 1.19.6 mishandles certain uses of backslash such as http:\/ and interprets the URI as a relative path.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- urijs (npm): before 1.19.6
- uri.js_project uri.js: before 1.19.6

## Every score

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

## References

- <https://advisory.checkmarx.net/advisory/CX-2021-4305> (exploit, third-party-advisory, web)
- <https://github.com/medialize/URI.js/commit/a1ad8bcbc39a4d136d7e252e76e957f3ece70839> (patch, third-party-advisory, web)
- <https://github.com/medialize/URI.js/releases/tag/v1.19.6> (third-party-advisory, web)
- <https://github.com/medialize/URI.js/security/advisories/GHSA-p6j9-7xhc-rhwp> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27516> (advisory)
- <https://github.com/medialize/URI.js> (package)

## Sources

- CVE List: [CVE-2021-27516](https://www.cve.org/CVERecord?id=CVE-2021-27516), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-p6j9-7xhc-rhwp](https://github.com/advisories/GHSA-p6j9-7xhc-rhwp), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-27516](https://nvd.nist.gov/vuln/detail/CVE-2021-27516), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-27516 · Whole record: https://cve.day/CVE-2021-27516.json · Rebuilt by cve.day 2026-11-25T22:58:00.002Z
