CVE-2025-69874 nanotar is vulnerable to path traversal in parseTar() and parseTarGzip()
Remote attackers can write arbitrary files outside the intended directory via crafted tar archives in the nanotar library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-69874?
CVE-2025-69874 is a critical path traversal vulnerability in n/a, published on 11 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2025-69874?
2 open source packages ship an affected version, including nanotar. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
nanotar npm | All versions to 0.2.0 | None |
nanotar npm | All versions to 0.2.0 | None |
Products include Unjs Nanotar.
How do I fix CVE-2025-69874?
No fix has been published for CVE-2025-69874 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-69874 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-69874 exists.
Sources
Also known as GHSA-92fh-27vv-894w.