Malicious code in autoloan (npm)
- MAL-2026-20329
Description
Show the whole descriptionHide the whole description
autoloan is a dependency-confusion package: its description is "Compatibility shim." and its README calls it an "authorized dependency-confusion test" by "Kero (@0xWise)". Each listed version has a postinstall script that runs `node beacon.cjs` on npm install, and index.js runs the same code when the package is imported; it POSTs the hostname, install path and current working directory to `https://vmi3699893.contaboserver.net:8787/_ah/dc` with TLS certificate checks turned off, and index.js exports a Proxy of no-op functions so builds that import the real package keep running. The npm account ppblpp1 published autoloan and 7 other packages with the same beacon on 2026-11-21 between 21:34 and 22:09 UTC. The package ships a postinstall hook ("node beacon.cjs") and a main entry (index.js) that both execute beacon.cjs on npm install and on require(). beacon.cjs collects installer-side identifiers — os.hostname(), __dirname (the install path on the installer's disk), process.cwd(), process.version, and the package name — and POSTs them as JSON to the hardcoded endpoint https://vmi3699893.contaboserver.net:8787/_ah/dc, a bare Contabo VPS unrelated to any documented publisher. The HTTPS request is made with rejectUnauthorized:false, disabling TLS certificate verification. index.js itself exports a Proxy whose properties all return no-op values, so the package provides no real functionality — the install-time and import-time beacon is the sole effect of installing this package. The shape (stub module + hardcoded bare-VPS callback + TLS verification disabled + auto-fire on both lifecycle hook and module load) matches a dependency-confusion / install-tracking beacon rather than a legitimate library.
Text from the OSV record.
Affected
autoloannpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.