Togoder security

npm package security report

cosmiconfig npm package 9.0.0: is it safe?

Medium: risky but common patterns, not malware.

Needs review Version 9.0.0 Files reviewed 15 Size 45.4 KB Scanned

Summary

Togoder Security scanned the npm package cosmiconfig@9.0.0 on Nov 2, 2026. An AI review of 15 source files produced 2 medium severity findings. The overall verdict is medium: the findings flag risky but common patterns that the package's purpose explains (dynamic code, telemetry, native installers, broad file or network access), not malware.

0
critical
0
high
2
medium
0
low

Findings 2

Login to view the findings

What the code does, the file and line, and the recommendation are for signed-in users. Logging in is free.

Files reviewed

FileVerdictResult
dist/canUseDynamicImport.js medium 1 finding
dist/loaders.js medium 1 finding
dist/Explorer.js safe Clear
dist/ExplorerBase.js safe Clear
dist/ExplorerSync.js safe Clear
dist/cacheWrapper.js safe Clear
dist/defaults.js safe Clear
dist/getDirectory.js safe Clear
dist/getPropertyByPath.js safe Clear
dist/index.js safe Clear
dist/merge.js safe Clear
dist/readFile.js safe Clear
dist/types.js safe Clear
dist/util.js safe Clear
package.json safe Clear

Scanned versions of cosmiconfig

VersionVerdictFilesScanned
9.0.0 Needs review 15 Nov 2, 2026

Frequently asked questions

Is cosmiconfig safe to use?

No confirmed malware was found in cosmiconfig@9.0.0, but the review flagged 2 medium severity findings for risky patterns worth checking before you rely on it.

Does cosmiconfig contain malware?

No malware was identified in cosmiconfig@9.0.0 when Togoder Security scanned it on Nov 2, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.

How was cosmiconfig checked?

Togoder Security downloaded the published npm package and had an AI model read its 15 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 cosmiconfig 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 cosmiconfig@9.0.0, cost nothing.

Related security reports