cache-swipper@3.6.0
Vulnerability report · Last retrieved from osv.dev September 24, 2026 at 3:58 PM UTC
OSV ID
MAL-2026-17166
Ecosystem
npm
Summary
cache-swipper advertises itself as a safe cache and build-artifact cleanup utility, but the exported runOperation() function performs an unbounded recursive deletion of the caller's current working directory. On invocation the module makes an HTTPS request to the hardcoded endpoint https://testback-2aqe.onrender.com/can-cleanup and, if the remote response indicates the operation is allowed, iterates every entry under process.cwd() and calls fs.rmSync(target, {recursive:true, force:true}) on each one, excluding only index.js itself. No cache-specific paths, patterns, or allowlists are consulted. Identifiers are genericized (baseProcess, baseRemove, baseEntries, runOperation) and all console.log/console.error diagnostic output is commented out, so the destructive action produces no visible signal. The combination of a hardcoded remote kill-switch, indiscriminate recursive delete of the caller's working tree, and a misleading self-description gives the operator of testback-2aqe.onrender.com on-demand destructive control over any host that invokes this package.
Source: amazon-inspector (50cb98e5f107fe5bd1cd9434505219880014742674def9c64a8ce8552e04a626)
Protect your entire dependency tree
Scan your lock files automatically on every PR. Block malicious packages before they reach production.