Summary
Togoder Security scanned the npm package cacache@20.0.4 on Oct 6, 2026. An AI review of 14 source files produced 2 low severity findings. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.
Findings 2
Dynamic import
NPS-660F86E30246
Dynamic import of 'p-map' with a static module name. No computed or external input is used. This is a standard dependency for concurrency control.
Dynamic import
NPS-E09661BB3EB6
Dynamic import of 'p-map' with a static module name. No computed or external input is used.
Files reviewed
| File | Verdict | What the reviewer saw |
|---|---|---|
| lib/content/path.js | safe | Cleared by Jev triage; no further analysis needed |
| lib/content/read.js | safe | No malicious patterns detected; the code is a legitimate content-addressable cache reader with integrity verification and no external network, process, or credential access. |
| lib/content/rm.js | safe | No malicious patterns detected |
| lib/content/write.js | safe | No malicious patterns detected; the code is a legitimate npm cache content writer with standard integrity and file-move logic. |
| lib/entry-index.js | safe | No malicious patterns detected; the code implements a local filesystem-based cache index with standard cryptographic hashing and no network, process, or credential access. |
| lib/get.js | safe | No malicious patterns detected; this is legitimate cacache get.js code with no exfiltration, credential harvesting, obfuscation, or process spawning. |
| lib/index.js | safe | No malicious patterns detected |
| lib/memoization.js | safe | No malicious patterns detected |
| lib/put.js | safe | No malicious patterns detected |
| lib/rm.js | safe | No malicious patterns detected; the code is a legitimate cache removal utility. |
| lib/util/glob.js | safe | Cleared by Jev triage; no further analysis needed |
| lib/util/hash-to-segments.js | safe | Cleared by Jev triage; no further analysis needed |
| lib/util/tmp.js | safe | No malicious patterns detected; this is a legitimate utility for creating and managing temporary directories within a cache directory. |
| lib/verify.js | safe | The code is a cache verification module from the npm package cacache, with no malicious patterns such as data exfiltration, credential harvesting, obfuscated code, or process spawning; the only notable items are benign dynamic imports of a known library. |
Frequently asked questions
Is cacache safe to use?
Our AI source review of cacache@20.0.4 found no malicious code: no install-time payloads, credential theft, exfiltration, obfuscated loaders or backdoors.
Does cacache contain malware?
No malware was identified in cacache@20.0.4 when Togoder Security scanned it on Oct 6, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.
How was cacache checked?
Togoder Security downloaded the published npm package and had an AI model read its 14 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.
How do I scan cacache together with the rest of my dependencies?
Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in cacache@20.0.4, cost nothing.