MAL-2026-20553
Malicious code in juyip-parser-helper (npm)
Auswirkung
The package is published as a zlib compression helper but exhibits two behaviors inconsistent with that purpose. First, at module top level on `require('juyip-parser-helper')` it executes `process.env.PATH = '.'`, overwriting the importing process's PATH environment variable with the current working directory. Any subsequent unqualified shell lookup performed by the host process (e.g. `ls`, `node`, `git`, `sh`) will then resolve binaries from CWD before any system path, which enables local binary-planting hijacks against the process that imported the module. Second, the module ships a hardcoded AES-128-CBC ciphertext blob with a hardcoded key (`abcdefghijklmnop`) and IV and exposes a `createTestAssets()` function that decrypts the blob with `createDecipheriv` and returns the plaintext; the README does not disclose this encrypted payload or document the function. Neither behavior is consistent with a zlib compression helper, and the PATH mutation on import directly tampers with the installer process's execution environment.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | juyip-parser-helper | unbekannt | nicht erfasst |