GHSA-642C-P559-RMR5
Malicious code in truffle-kit (npm)
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-642C-P559-RMR5 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
## Source: amazon-inspector (e31407446b3d2956a7510904bdc4e247d1ddb3d743e85fbfff5cc634547964ea)
Package presents itself as a pino-style logging middleware (keywords 'fast, logger, stream, json', exports as `pino`), but the advertised middleware is a dropper. The main entry index.js exports a middleware factory that spawns a detached `node lib/caller.js` child with `stdio: 'ignore'` and `child.unref()`, hiding the child from the parent. lib/caller.js base64-decodes a hardcoded URL (https://iphub-encrypted.vercel.app/api/auth/f1f097d93c318c92f0c5), POSTs to it with axios, and passes the response body to `new Function.constructor('require', s)` then invokes it with the real `require`, granting the remote endpoint arbitrary code execution with full Node privileges on the installer's host. Package metadata (bugs URL at jsonspack.com, description text unrelated to logging) is inconsistent with the advertised pino-logger purpose, consistent with impersonation/typosquat cover for the dropper.
---
Credit: OpenSSF https://github.com/ossf/malicious-packages (source https://github.com/ossf/malicious-packages/blob/132d38386cffbe4a1bd9b4a2aaf1f3ae149aedba/osv/malicious/npm/truffle-kit/MAL-2026-20293.json)
Versiones afectadas
3.3.2Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmtruffle-kit |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/ossf/malicious-packages/blob/132d38386cffbe4a1bd9b4a2aaf1f3ae149aedba/osv/malicious/npm/truffle-kit/MAL-2026-20293.jsonhttps://www.npmjs.com/package/truffle-kit/v/3.3.2https://github.com/advisories/GHSA-642c-p559-rmr5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
