Loading HuntDB...

GHSA-pq67-2wwv-3xjx

GitHub Security Advisory

tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package.

This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.7.

Affected Packages

npm tar-fs
Affected versions: 0 (fixed in 1.16.4)
npm tar-fs
Affected versions: 2.0.0 (fixed in 2.1.2)
npm tar-fs
Affected versions: 3.0.0 (fixed in 3.0.7)

Related CVEs

Key Information

GHSA ID
GHSA-pq67-2wwv-3xjx
Published
March 27, 2025 6:31 PM
Last Modified
May 20, 2025 5:57 PM
CVSS Score
7.5 /10
Primary Ecosystem
npm
Primary Package
tar-fs
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 9, 2025 6:37 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.