cheerio-tool
This report shows the evidence for cheerio-tool@1.0.5. 3 of 3 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-3756 confirms this npm version as malicious.
Advisory
MAL-2026-3756
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in cheerio-tool (npm)
Details
cheerio-tool typosquats the popular `cheerio` HTML parser (README claims 'Cheerio Tool utility helpers', keywords are 'lodash','utilities', and index.js self-describes as 'lodash-js — Just a dummy module. The real payload is in postinstall.js'). On `npm install`, the declared postinstall script `node postinstall.js` runs a credential harvester and crypto-wallet scanner. It reads installer secret files including `~/.npmrc`, `~/.env`, and `~/.git-credentials`, extracts npm auth tokens (`_authToken`, `npm_[A-Za-z0-9]{36}`), API keys, database URLs, AWS/GCP cloud credentials, payment keys, and webhook secrets. It enumerates Chrome, Brave, Edge, Chromium, Vivaldi, and Opera profile directories, iterates `Local Extension Settings/<wallet-id>` against 71 hardcoded browser wallet extension IDs (MetaMask `nkbihfbeogaeaoehlefnkodbefgpgknn`, Phantom, Coinbase, Trust, Ledger, Trezor, etc.), and regex-matches vault, mnemonic, seed phrase, private key, and encrypted-blob material from the LevelDB `.log` files. It additionally scans `~/Documents`, `~/Desktop`, and `~/Downloads` for files matching seed/backup/wallet/phrase/crypto/metamask/phantom/vault/key/private and checks contents against BIP-39 wordlists. Collected data is bundled with hostname and username and POSTed to hardcoded `http://149.28.127.35:8888` (plain HTTP, bare IPv4, overridable via `C2_URL` env var). The source self-identifies as 'Token harvester + Crypto wallet scanner — Runs on npm install. Silent. Zero trace.' Any developer or CI system that installs this package loses their npm publish token, project environment secrets, git credentials, and browser-resident cryptocurrency wallet seed phrases.
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to cheerio-tool@1.0.5.
The same advisory and Firewall decision cover 3 recorded versions
1.0.3, 1.0.4, 1.0.5
The versions list below shows the verdict for each recorded version.
- Avoid installing cheerio-tool@1.0.5. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.