Vulnerabilities/

nanotar is vulnerable to path traversal in parseTar() and parseTarGzip()

Severity:
Medium

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.

Recommendation

No fix is available yet. Followings are affected versions:

References

Related Issues

Tags:
npm
nanotar
Anything's wrong? Let us know Last updated on February 11, 2026