Togoder security

npm package security report

cacache npm package: is it safe?

No malicious code found.

No issues Version 20.0.4 Files reviewed 14 Size 37.5 KB Scanned

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.

0
critical
0
high
0
medium
2
low

Findings 2

low

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.

lib/verify.js:88
low

Dynamic import

NPS-E09661BB3EB6

Dynamic import of 'p-map' with a static module name. No computed or external input is used.

lib/verify.js:162

Files reviewed

FileVerdictWhat 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.

Scanned versions of cacache

VersionVerdictFilesScanned
20.0.4 No issues 14 Oct 6, 2026

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.

Related security reports