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

CVE-2021-37713: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

August 31, 2021 (updated April 25, 2022)

The npm package “tar” (aka node-tar) has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. node-tar aims to guarantee that any file whose location would be outside of the extraction target directory is not extracted.

References

  • github.com/npm/node-tar/security/advisories/GHSA-5955-9wpr-37jh
  • nvd.nist.gov/vuln/detail/CVE-2021-37713

Code Behaviors & Features

Detect and mitigate CVE-2021-37713 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 before 4.4.18, all versions starting from 5.0.0 before 5.0.10, all versions starting from 6.0.0 before 6.1.9

Fixed versions

  • 4.4.18
  • 5.0.10
  • 6.1.9

Solution

Upgrade to versions 4.4.18, 5.0.10, 6.1.9 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-37713.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:31 +0000.