unjs/nanotar · Security

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

GHSA ID
GHSA-92fh-27vv-894w
CVE ID
CVE-2025-69874
Severity
medium
Published
Updated
CVSS v4
6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

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.

CWEs

References