Malicious code in fastify-client-bundler (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (370379b65a0c7e31b5bf43362a0c1fa1312f9a458a7af9a4a3d95892dc2a6935) index.js (the package main) defines a getPlugin() function that fetches JSON from a hardcoded bare-IP HTTPS endpoint at 31.97.137.157:45000 and compiles the response's `credits` field via `new Function(...)` with `require`, `module`, `exports`, `process`, `Buffer`, and `Promise` injected, then invokes it — granting the remote endpoint arbitrary code execution in the Node process that loads the package. The package's declared purpose (a Fastify client bundler / Tailwindcss forms bundler) and CDN-style helpers (setDefaultModule constructing cdnjs URLs) are unused decoys; the actually-invoked network path targets the bare IP. Bundled runtime dependencies (@primno/dpapi, better-sqlite3, node-machine-id) are consistent with a Windows credential/wallet stealer that a delivered payload would load through the injected `require`.
MAL-2026-12379
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-12379
fastify-client-bundler
Source reference: /affected/0/package/name
- Affected versions
- 1.4.0
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "fastify-client-bundler",
"purl": "pkg:npm/fastify-client-bundler",
"ecosystem": "npm"
},
"versions": [
"1.4.0"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/fastify-client-bundler/MAL-2026-12379.json",
"indicators": {
"evidence_files": [
{
"path": "index.js",
"tlsh": "96c1726546fa31a36a67e4edf30f100271a5e313375ce971f48e42902fca568e5f24e8",
"sha256": "e46d14bcb6b21b782972b143ba8b7f1e3dda376047a12426e776f5ae2106a2d8"
},
{
"path": "package.json",
"tlsh": "3b014910ce218eb715d92652982d9186e261dc4b8e11fc0c33da479c9f4e57f27fe66c",
"sha256": "f50c206cee430e388e406cf96ae68ec6a32727bec8712e338021d3119c4e36f5"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "9567bad6193e59e2a79118569924da56fedc16f4",
"sha512_sri": "sha512-d20kiu5os1j9hQhXHaB4kTB7oRnhIFE3WwBIamogZUlhYHQTgSBtUYSIcGDEyKTPdp8jih6LCZJXOTbnbLce4w=="
},
"filename": "fastify-client-bundler-1.4.0.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #10983 · Revision 1
- Added to Heist Feed
- Publisher date