OpenSSF/OSV advisory MAL-2026-14345 confirms this npm version as malicious. The package advertises itself as an Express session middleware but on module load unconditionally invokes an initPlugin() routine in index.js that performs an HTTPS fetch to https://api.jsonbin.io/v3/b/6a4f5816f5f4af5e29762c92, parses the response, extracts the record.cerookie field, and passes the resulting string to Function.constructor with require bound as an argument, executing attacker-controlled JavaScript in...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in express-session-handler (npm)
Details
The package advertises itself as an Express session middleware but on module load unconditionally invokes an initPlugin() routine in index.js that performs an HTTPS fetch to https://api.jsonbin.io/v3/b/6a4f5816f5f4af5e29762c92, parses the response, extracts the record.cerookie field, and passes the resulting string to Function.constructor with require bound as an argument, executing attacker-controlled JavaScript in the installer's Node.js process. The remote document is mutable and controlled by whoever owns that jsonbin bin, so the code executed on any host that requires this module can be changed at any time. The file is prefaced with a '/*! normalize-path (ES6 safe version) */' header and ships an unused normalizePath helper alongside the loader, presenting a cover story unrelated to the actual behavior.
Decision reason
OpenSSF Malicious Packages via OSV confirms express-session-handler@2.3.3 as malicious (MAL-2026-14345): Malicious code in express-session-handler (npm)