Malicious code in postgreesqlhelper (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-16150
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8956bc32d5371591e9ad2dd809c55715c24a2b4254a9713e280fb646cd1aea49) On require() of postgreesqlhelper, index.js decodes two base64 blobs shipped as parse.ts.map and init.ts.map, writes them to parsetmp.js and config.js, require()s parsetmp.js, and then unlinks the staged files. The decoded loader performs an HTTPS GET to https://www.jsonkeeper.com/b/V6NBX (a public paste host), AES-256-CBC decrypts the response with a hardcoded password and salt, and passes the plaintext to eval() at module load — arbitrary remote code execution against any process that imports the package. Payload naming as TypeScript sourcemap files, post-load deletion of the dropped and staged files, and package name/description that impersonate the get-proto package are consistent with deliberate concealment and typosquat lure.
- Source published
- 14 Sep 2026 16:54:35 UTC
- Source modified
- 14 Sep 2026 17:30:06 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.