Vulnerability library
Security checkFebruary 11, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmnanotar

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • <= 0.2.0

References

Could your website be exposed too?

SmartScanner can check your website for nanotar is vulnerable to path traversal in parseTar() and parseTarGzip() and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 11, 2026