npm · Malicious package advisory
Malwarejuyip-parser-helper
GHSA-r8m3-pmpr-wjx5
Malicious code in juyip-parser-helper (npm)
Details
**Severity:** Critical
**Affected versions:** `= 1.0.1`
## Source: amazon-inspector (0a804363ce357d88f9a58b0cd7eeed314f8462d86c9b6f251a679e9572e3a49c)
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.
---
Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/18bc19930304ee409163f851ad82eb67bb42dfe2/osv/malicious/npm/juyip-parser-helper/MAL-2026-20553.json))
**References:**
- https://github.com/ossf/malicious-packages/blob/18bc19930304ee409163f851ad82eb67bb42dfe2/osv/malicious/npm/juyip-parser-helper/MAL-2026-20553.json
- https://www.npmjs.com/package/juyip-parser-helper/v/1.0.0
- https://www.npmjs.com/package/juyip-parser-helper/v/1.0.1
- https://www.npmjs.com/package/juyip-parser-helper/v/1.0.2
- https://www.npmjs.com/package/juyip-parser-helper/v/1.0.4
- https://github.com/advisories/GHSA-r8m3-pmpr-wjx5Compromised versions (1)
- = 1.0.1
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.