Malicious code in @tuluax/errb (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-11993
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (561541f6fdbe9bd25716c6fb8a3326df9cbe7a78e7c972d89e36a1c9afc7a186) package.json scripts.install runs `node -e "require('child_process').spawn('node', ['index.js'], { detached: true, stdio: 'ignore' }).unref()"`, causing `npm install` to spawn index.js as a detached background process. index.js reconstructs a network destination at runtime by AES-256-CBC-decrypting a hardcoded hex ciphertext with a hardcoded key and IV via createDecipheriv, then fetches the resulting URL and passes the response body to eval(). The endpoint controller therefore executes arbitrary JavaScript on the installer's machine at install time. The destination is hidden via cryptographic reconstruction rather than appearing as a plain string, defeating static URL scanning. The package impersonates the widely-used `errno` package by Rod Vagg: the tarball name is `@tuluax/errb`, package.json lists `Rod Vagg @rvagg <[email protected]>` as author despite publication under the unrelated `@tuluax` scope, and the README is titled `node-errno` and states `Available in npm as errno`.
- Source published
- 4 Aug 2026 23:57:59 UTC
- Source modified
- 5 Aug 2026 00:37:41 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.