Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nanotar
  4. ›
  5. CVE-2025-69874

CVE-2025-69874: nanotar is vulnerable to path traversal in parseTar() and parseTarGzip()

February 11, 2026

nanotar through 0.2.0 has a path traversal vulnerability in parseTar() and parseTarGzip() that allows remote attackers to write arbitrary files outside the intended extraction directory via a crafted tar archive containing path traversal sequence.

References

  • github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69874-nanotar-Path-Traversal.md
  • github.com/advisories/GHSA-92fh-27vv-894w
  • github.com/unjs/nanotar
  • nvd.nist.gov/vuln/detail/CVE-2025-69874
  • www.npmjs.com/package/nanotar

Code Behaviors & Features

Detect and mitigate CVE-2025-69874 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 up to 0.2.0

Solution

Unfortunately, there is no solution available yet.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

npm/nanotar/CVE-2025-69874.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 25 Mar 2026 00:17:26 +0000.