IA Squad
SearchPT
js · pnpmHeads-up

pnpm: Path traversal via malicious bin names in global installs

Manifest bin object keys such as empty string, ".

27 Jun 2026Read 1 minSeverity: schedule it

What changed

Manifest bin object keys such as empty string, ".", and ".." were not rejected by pnpm's bin-name guard, allowing global package operations to delete outside the global bin directory via path traversal.

Who it affects

Users of pnpm who install malicious packages globally; the vulnerability affects global remove, update, and add-replacement flows.

What to do today

Review the shared patch branch and apply the fix to reject reserved bin names; monitor for the patched release.

The trail
Collected Audited Written Published