Summary
Togoder Security scanned the npm package resolve-from@5.0.0 on Oct 6, 2026. An AI review of 1 source file produced 2 low severity findings. The overall verdict is medium: the findings flag risky but common patterns (dynamic code, unsafe defaults, broad file or network access) rather than confirmed malware.
Findings 2
Dynamic module loading with computed input
NPS-C922D3F428B7
The code uses Module._resolveFilename with a user-provided moduleId and fromDirectory. While this is the intended functionality of the resolve-from package (resolving module paths), it relies on an internal, undocumented Node.js API (Module._resolveFilename, Module._nodeModulePaths). This could be abused if the inputs come from untrusted sources, but the package itself does not exfiltrate data or execute arbitrary code. It only resolves a path.
Use of internal Node.js API
NPS-F47B6DB7F600
The code accesses Module._resolveFilename and Module._nodeModulePaths, which are private APIs. These may change across Node.js versions, potentially causing unexpected behavior. However, this is a common pattern in utility packages like resolve-from and not inherently malicious.
Files reviewed
| File | Verdict | What the reviewer saw |
|---|---|---|
| index.js | medium | The code implements a module path resolution utility using internal Node.js APIs; it contains no malicious patterns such as data exfiltration, credential harvesting, or code execution. |
Affected version ranges
None of the 2 scanned versions of resolve-from are flagged high or critical. The latest scanned version, 5.0.0, is medium risk. Only versions we have scanned are listed; unscanned versions between them are not covered.
| Versions | Verdict | Count | Range | Top findings |
|---|---|---|---|---|
| 4.0.0 โ 5.0.0 | Needs review | 2 | >=4.0.0 <=5.0.0 | |
| 3.0.0 | Not scanned | 1 | 3.0.0 |
Full list, including published versions not scanned yet: version ranges API.
Scanned versions of resolve-from
Frequently asked questions
Is resolve-from safe to use?
No confirmed malware was found in resolve-from@5.0.0, but the review flagged 2 low severity findings for risky patterns worth checking before you rely on it.
Does resolve-from contain malware?
No malware was identified in resolve-from@5.0.0 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 resolve-from checked?
Togoder Security downloaded the published npm package and had an AI model read its 1 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 resolve-from 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 resolve-from@5.0.0, cost nothing.