npm · Malicious package advisory
Malwarejuyip-parser-assets
GHSA-pwm6-q8mx-mx39
Malicious code in juyip-parser-assets (npm)
Details
**Severity:** Critical **Affected versions:** `= 1.0.1` ## Source: amazon-inspector (88c47b01a7b3719e60ecd10a1293f60f948c8c68e22e308caa161c0ed732a416) [email protected] advertises itself as a compressed-asset storage helper, but its saveAsset function contains an undocumented side effect unrelated to compression: on every invocation, it checks whether a file named '../ls' exists relative to the process working directory and, if so, calls fs.chmodSync('../ls', 0o755) to mark it executable. The target path is outside the package's own directory, the filename mimics a common system utility, and the operation has no connection to the stated compressed-asset purpose. This is the executable-bit-flipping half of a split-package dropper pattern: a companion component stages a binary at that path and this package silently makes it runnable on the installer's host whenever the library's advertised API is used. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/18bc19930304ee409163f851ad82eb67bb42dfe2/osv/malicious/npm/juyip-parser-assets/MAL-2026-20552.json)) **References:** - https://github.com/ossf/malicious-packages/blob/18bc19930304ee409163f851ad82eb67bb42dfe2/osv/malicious/npm/juyip-parser-assets/MAL-2026-20552.json - https://www.npmjs.com/package/juyip-parser-assets/v/1.0.1 - https://github.com/advisories/GHSA-pwm6-q8mx-mx39
Compromised 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.