Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/tar-fs@1.16.2
purl pkg:npm/tar-fs@1.16.2
Next non-vulnerable version 1.16.6
Latest non-vulnerable version 3.1.1
Risk 10.0
Vulnerabilities affecting this package (3)
Vulnerability Summary Fixed by
VCID-9yvn-36su-rba9
Aliases:
CVE-2025-48387
GHSA-8cj5-5rvv-wf4v
tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.
1.16.5
Affected by 1 other vulnerability.
2.1.3
Affected by 1 other vulnerability.
3.0.9
Affected by 1 other vulnerability.
VCID-q8uf-4z9d-jqe9
Aliases:
CVE-2025-59343
GHSA-vj76-c3g6-qr5v
1.16.6
Affected by 0 other vulnerabilities.
2.1.4
Affected by 0 other vulnerabilities.
3.1.1
Affected by 0 other vulnerabilities.
VCID-sr61-u29y-k3az
Aliases:
CVE-2024-12905
GHSA-pq67-2wwv-3xjx
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.8.
1.16.4
Affected by 2 other vulnerabilities.
2.1.2
Affected by 2 other vulnerabilities.
3.0.7
Affected by 2 other vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-m381-y8gp-wbg8 Improper Input Validation in tar-fs CVE-2018-20835
GHSA-x2mc-8fgj-3wmr

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-12T20:21:46.497279+00:00 GitLab Importer Affected by VCID-q8uf-4z9d-jqe9 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/tar-fs/CVE-2025-59343.yml 38.6.0
2026-06-12T20:03:15.541416+00:00 GitLab Importer Affected by VCID-9yvn-36su-rba9 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/tar-fs/CVE-2025-48387.yml 38.6.0
2026-06-12T19:57:24.123103+00:00 GitLab Importer Affected by VCID-sr61-u29y-k3az https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/tar-fs/CVE-2024-12905.yml 38.6.0
2026-06-12T15:41:43.121706+00:00 GitLab Importer Fixing VCID-m381-y8gp-wbg8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/tar-fs/CVE-2018-20835.yml 38.6.0
2026-06-12T08:12:26.066261+00:00 GithubOSV Importer Fixing VCID-m381-y8gp-wbg8 https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/05/GHSA-x2mc-8fgj-3wmr/GHSA-x2mc-8fgj-3wmr.json 38.6.0
2026-06-11T20:25:15.763693+00:00 GHSA Importer Fixing VCID-m381-y8gp-wbg8 https://github.com/advisories/GHSA-x2mc-8fgj-3wmr 38.6.0