Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. url-parse
  4. ›
  5. CVE-2021-27515

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

May 6, 2021 (updated February 3, 2026)

url-parse before 1.5.0 mishandles certain uses of backslash such as http:/ and interprets the URI as a relative path.

References

  • advisory.checkmarx.net/advisory/CX-2021-4306
  • github.com/advisories/GHSA-9m6j-fcg5-2442
  • github.com/github/advisory-database/pull/6763
  • github.com/unshiftio/url-parse
  • github.com/unshiftio/url-parse/commit/d1e7e8822f26e8a49794b757123b51386325b2b0
  • github.com/unshiftio/url-parse/compare/1.4.7...1.5.0
  • github.com/unshiftio/url-parse/pull/197
  • lists.debian.org/debian-lts-announce/2023/02/msg00030.html
  • nvd.nist.gov/vuln/detail/CVE-2021-27515

Code Behaviors & Features

Detect and mitigate CVE-2021-27515 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.1.0 before 1.5.0

Fixed versions

  • 1.5.0

Solution

Upgrade to version 1.5.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-23: Relative Path Traversal

Source file

npm/url-parse/CVE-2021-27515.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:19 +0000.