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.
Findings 2
What the code does, the file and line, and the recommendation are for signed-in users. Logging in is free.
Login to view
Login to view
Files reviewed
| File | Verdict | Result |
|---|---|---|
| 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
| Version | Verdict | Files | Scanned |
|---|---|---|---|
| 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.