CVE-2025-69874 Details
Description
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.
A path traversal vulnerability has been identified in unjs nanotar versions through 0.2.0. The issue resides in the 'parseTar()' and 'parseTarGzip()' functions, where the library fails to properly validate file names extracted from tar archive headers. This oversight allows remote attackers to craft tar archives that include path traversal sequences, such as '../../../', enabling them to write arbitrary files outside the designated extraction directory. The vulnerability follows the classic 'Zip Slip' pattern, potentially leading to unauthorized file overwrites or execution of malicious scripts, depending on the extracted file's location.
Users of nanotar should update to the latest version and ensure that any tar archives are extracted using a validated and secure method. When using the 'parseTar()' or 'parseTarGzip()' functions, implement a validation step to check that extracted file paths do not traverse outside the intended directory.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69874-nanotar-Path-Traversal.md | [email protected] | ExploitThird Party Advisory |
| https://github.com/unjs/nanotar | [email protected] | Product |
| https://www.npmjs.com/package/nanotar | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| unjs nanotar | <= 0.2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 3, 2026 | Initial Analysis | [email protected] |
| Feb 12, 2026 | CVE Modified | CISA-ADP |
| Feb 11, 2026 | New CVE Received | [email protected] |