npm

chain-chai-async @1.3.5

Vulnerability report · Last retrieved from osv.dev July 9, 2026 at 6:28 PM UTC

Malicious

OSV ID

MAL-2026-10055

Ecosystem

npm

Summary

chain-chai-async@1.3.5 impersonates the pino logging library (README badge links to npm/pino, exports module.exports.pino = middleware , and ships files copied from the real pino source tree). Its exported middleware factory in index.js spawns lib/caller.js as a detached child node process with stdio ignored, decoupling the payload from the parent's lifecycle and suppressing its output. lib/caller.js issues an HTTPS GET to https://jsonkeeper.com/b/EXSIF, extracts the cookie field from the JSON response, and passes it to new Function.constructor('require', s)(require) — executing attacker-controlled JavaScript with full Node require access on any machine that loads and invokes the package. The remote source is a mutable, unauthenticated paste service, so the executed code can be swapped at any time by the attacker without republishing the package. Any consumer who installs this package believing it to be pino and calls its exported middleware will trigger arbitrary remote code execution on the host.

Source: amazon-inspector (655c64cb99f74a3b96f1b5e1d0102ce0c756e63368a5ca252e70e49e98f346b3)

Protect your entire dependency tree

Scan your lock files automatically on every PR. Block malicious packages before they reach production.