You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v11: Unbounded memory accumulation in remoteTarballFetcher during streaming #80
In pnpm11/fetching/tarball-fetcher/src/remoteTarballFetcher.ts, chunks from the HTTP response body stream are buffered into memory without an upper limit while downloading remote tarballs.
If a malicious or misconfigured remote server returns an endless stream of data, the process accumulates buffers until Node.js process heap memory is exhausted, causing an out-of-memory crash.
Enforce an upper threshold on accumulated response body bytes for package tarballs, or stream directly into a bounded parser/store writer with backpressure.
Context
Originally reported in GHSA-49gx-j698-j73j by Jvr2022.
Opened pnpm/pnpm#16613 to address this task. Spills large tarball downloads to temporary files with bounded buffering and cleanup on failure. Archive integrity is verified before extraction.
Activity
zkochan commentedon Oct 5, 2026
Opened pnpm/pnpm#16613 to address this task. Spills large tarball downloads to temporary files with bounded buffering and cleanup on failure. Archive integrity is verified before extraction.
Written by an agent (Codex, GPT-6).