Summary
Togoder Security scanned the npm package yargs@18.0.0 on Nov 2, 2026. An AI review of 27 source files produced 1 medium severity finding. 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 1
What the code does, the file and line, and the recommendation are for signed-in users. Logging in is free.
Login to view
Files reviewed
| File | Verdict | Result |
|---|---|---|
| build/lib/utils/apply-extends.js | medium | 1 finding |
| browser.mjs | safe | Clear |
| build/lib/argsert.js | safe | Clear |
| build/lib/command.js | safe | Clear |
| build/lib/completion-templates.js | safe | Clear |
| build/lib/completion.js | safe | Clear |
| build/lib/middleware.js | safe | Clear |
| build/lib/parse-command.js | safe | Clear |
| build/lib/typings/common-types.js | safe | Clear |
| build/lib/typings/yargs-parser-types.js | safe | Clear |
| build/lib/usage.js | safe | Clear |
| build/lib/utils/is-promise.js | safe | Clear |
| build/lib/utils/levenshtein.js | safe | Clear |
| build/lib/utils/maybe-async-result.js | safe | Clear |
| build/lib/utils/obj-filter.js | safe | Clear |
| build/lib/utils/process-argv.js | safe | Clear |
| build/lib/utils/set-blocking.js | safe | Clear |
| build/lib/utils/which-module.js | safe | Clear |
| build/lib/validation.js | safe | Clear |
| build/lib/yargs-factory.js | safe | Clear |
| build/lib/yerror.js | safe | Clear |
| helpers/helpers.mjs | safe | Clear |
| helpers/package.json | safe | Clear |
| index.mjs | safe | Clear |
| lib/platform-shims/browser.mjs | safe | Clear |
Show 2 more files
| File | Verdict | Result |
|---|---|---|
| lib/platform-shims/esm.mjs | safe | Clear |
| package.json | safe | Clear |
Affected version ranges
None of the 3 scanned versions of yargs are flagged high or critical. The latest scanned version, 18.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 |
|---|---|---|---|---|
| 18.0.0 | Needs review | 1 | 18.0.0 | Login to view |
| 17.7.2 โ 17.7.3 | Not scanned | 2 | >=17.7.2 <=17.7.3 | |
| 16.2.0 | Needs review | 1 | 16.2.0 | Login to view |
| 15.4.1 | Low risk | 1 | 15.4.1 | |
| 7.1.2 | Not scanned | 1 | 7.1.2 |
Full list, including published versions not scanned yet: version ranges API.
Scanned versions of yargs
Frequently asked questions
Is yargs safe to use?
No confirmed malware was found in yargs@18.0.0, but the review flagged 1 medium severity finding for risky patterns worth checking before you rely on it.
Does yargs contain malware?
No malware was identified in yargs@18.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 yargs checked?
Togoder Security downloaded the published npm package and had an AI model read its 27 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 yargs 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 yargs@18.0.0, cost nothing.