# CVE-2021-27515: Path traversal in url-parse

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/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.99%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-21T00:00:00.000Z
- Modified: 2026-06-17T03:45:00.447Z
- Also known as: GHSA-9m6j-fcg5-2442
- Weaknesses: CWE-23
- Assigned by: mitre

## Description

url-parse before 1.5.0 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
- url-parse (npm): from 0.1.0 before 1.5.0
- url-parse_project url-parse: before 1.5.0

## Every score

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

## References

- <https://advisory.checkmarx.net/advisory/CX-2021-4306> (exploit, third-party-advisory, web)
- <https://github.com/unshiftio/url-parse/commit/d1e7e8822f26e8a49794b757123b51386325b2b0> (patch, third-party-advisory, web)
- <https://github.com/unshiftio/url-parse/pull/197> (patch, third-party-advisory, web)
- <https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.0> (patch, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/02/msg00030.html> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27515> (advisory)
- <https://github.com/github/advisory-database/pull/6763> (web)
- <https://github.com/unshiftio/url-parse> (package)

## Sources

- CVE List: [CVE-2021-27515](https://www.cve.org/CVERecord?id=CVE-2021-27515), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-9m6j-fcg5-2442](https://github.com/advisories/GHSA-9m6j-fcg5-2442), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2021-27515](https://nvd.nist.gov/vuln/detail/CVE-2021-27515), Public domain, modified 2026-06-17

---

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