Zip-slip traversal tar in @h1stealthy/gh046-npm-transfer-9421a2 npm package
Severity: critical · Patch status: no-fix-needed · Since 2026-11-19
GitHub Advisory Database (GHSA-5fv6-9w6w-23xh, credited to OpenSSF/amazon-inspector) flags the npm package @h1stealthy/gh046-npm-transfer-9421a2 as malicious. Its tarball contains directory entries with double-URL-encoded '..' sequences (%252e%252e/...) targeting /tmp/npm-traversal-doublepercent outside the package's install directory. On extractors that single-decode percent-encoding before path-safety checks, npm install would write attacker-chosen files to arbitrary filesystem paths (zip-slip-style path traversal). The shipped JavaScript is an inert stub with no lifecycle scripts; the attack surface is the archive layout itself. Versions 0.0.386387, 0.0.386388 and 0.0.95891 are affected with no patched versions; the package naming and marker payload suggest a controlled traversal probe rather than an active campaign.
What to do
- Check lockfiles and dependency trees for @h1stealthy/gh046-npm-transfer-9421a2 and remove/block it immediately
- Audit hosts where installs ran for unexpected files at /tmp/npm-traversal-double_percent or other out-of-directory writes
- Block the package and its versions at registry proxy/firewall level
- Prefer installers/extractors that validate paths after full decoding to resist double-encoded traversal
Sources
All live incidents on Threat Watch