CVE-2021-27516
HIGH 7.5CVSS 3.1URIjs Hostname spoofing via backslashes in URL
URI.js (aka urijs) before 1.19.6 mishandles certain uses of backslash such as http:/ and interprets the URI as a relative path.
- Published
- 22 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-p6j9-7xhc-rhwp
- Sources
- NVDJSONOSV GHSA-p6j9-7xhc-rhwpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | uri.js_project | uri.jscpe:2.3:a:uri.js_project:uri.js:*:*:*:*:*:*:*:* |
< 1.19.6 | 1.19.6 |
| OSV | npm | urijs | < 1.19.6 | 1.19.6 |
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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 22 Feb 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Mar 2021)