Path Traversal Vulnerability in @vltpkg/tar Package

@vltpkg/tar Updated 28 Jan 2026

Summary

28/01/2026
MODERATE
Yes i
Moderate
5.9

GHSA-gf2c-jwcj-x929: vlt Mishandles Path Sanitization for tar. Affects @vltpkg/tar versions < 1.0.0-rc.10. Fixed in 1.0.0-rc.10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The @vltpkg/tar package is a utility for handling tar file operations in Node.js applications. It provides functionalities for creating and extracting tar archives, making it a popular choice among developers for file management tasks. However, prior to version 1.0.0-rc.10, the package had a critical flaw in its path sanitization process during extraction, which could lead to security vulnerabilities.

Vulnerability Detail

The vulnerability arises from the mishandling of path sanitization in the @vltpkg/tar package before version 1.0.0-rc.10. This flaw allows attackers to exploit path traversal vulnerabilities, enabling them to extract files to arbitrary locations on the filesystem. Such exploitation can lead to unauthorized access to sensitive files or system compromise, making it a significant security risk for applications utilizing this package.

How To Fix

Minimum fixed version

1.0.0-rc.10

This is the first release that contains the fix.

npm install @vltpkg/tar@1.0.0-rc.10

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If you are unable to update the package immediately, consider implementing additional checks in your application to validate file paths before extraction. This can help mitigate the risk of path traversal attacks until you can apply the official patch.

Conclusion

The @vltpkg/tar package has a significant vulnerability related to path sanitization that can lead to path traversal attacks. It is crucial for developers using this package to update to version 1.0.0-rc.10 or later to mitigate the risk. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for @vltpkg/tar →

Share this vulnerability

FAQ

Path traversal is a security vulnerability that allows an attacker to access files and directories that are stored outside the intended directory.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability can lead to unauthorized file access, data leakage, or even complete system compromise, depending on the permissions of the application.

Yes, the CVSS score for this vulnerability is 5.9, indicating a moderate severity level.

Implement additional validation checks on file paths before extraction as a temporary workaround until you can update to the patched version.

How To Fix

Minimum fixed version

1.0.0-rc.10

This is the first release that contains the fix.

npm install @vltpkg/tar@1.0.0-rc.10

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback