Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tar
  4. ›
  5. CVE-2021-37701

CVE-2021-37701: Path Traversal

August 31, 2021 (updated January 19, 2023)

This npm package has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. node-tar aims to guarantee that any file whose location would be modified by a symbolic link is not extracted.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-37701

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.4.16, all versions starting from 5.0.0 before 5.0.8, all versions starting from 6.0.0 before 6.1.7

Fixed versions

  • 4.4.16
  • 5.0.8
  • 6.1.7

Solution

Upgrade to versions 4.4.16, 5.0.8, 6.1.7 or above.

Impact 8.6 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/tar/CVE-2021-37701.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:41 +0000.