Malicious code in express-session-handler (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-14345
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0e94450f5541b39d8310a8b640dee027b0970db6e7cf724352726d49393bfb77) 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.
- Source published
- 21 Aug 2026 03:56:39 UTC
- Source modified
- 21 Aug 2026 04:30:13 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.