chain-chai-async
Affected
- Versions:
1.3.5
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-wqgh-vp7f-x5q6
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in chain-chai-async (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (655c64cb99f74a3b96f1b5e1d0102ce0c756e63368a5ca252e70e49e98f346b3)
[email protected] 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.
Not rated by the source.
1.3.5None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0