Togoder security

npm package security report

yargs npm package 18.0.0: is it safe?

Medium: risky but common patterns, not malware.

Needs review Version 18.0.0 Files reviewed 27 Size 161.7 KB Scanned

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.

0
critical
0
high
1
medium
0
low

Findings 1

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.

medium

Login to view

Files reviewed

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

7.1.218.0.0
VersionsVerdictCountRangeTop 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

VersionVerdictFilesScanned
18.0.0 Needs review 27 Nov 2, 2026
16.2.0 Needs review 29 Nov 2, 2026
15.4.1 Low risk 19 Nov 2, 2026

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.

Related security reports