{"id":"MAL-2026-20553","summary":"Malicious code in juyip-parser-helper (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0a804363ce357d88f9a58b0cd7eeed314f8462d86c9b6f251a679e9572e3a49c)\nThe 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.\n","modified":"2026-11-25T06:30:09.039308365Z","published":"2026-11-25T06:05:08Z","database_specific":{"malicious-packages-origins":[{"sha256":"0a804363ce357d88f9a58b0cd7eeed314f8462d86c9b6f251a679e9572e3a49c","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-023098","import_time":"2026-11-25T06:20:24.503795917Z","modified_time":"2026-11-25T06:06:03Z"},{"sha256":"10fcb907dc294078f4a8e6a6891c91ff0a908efafe306ae8dcef6fd462b7e9db","source":"amazon-inspector","versions":["1.0.2"],"id":"IN-MAL-2026-023091","import_time":"2026-11-25T06:20:23.996232228Z","modified_time":"2026-11-25T06:05:08Z"},{"sha256":"bd770d31f092f0b056b538c3e3e3a41a5d93aa5eda7af00b537555338dc3ab5c","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-023094","import_time":"2026-11-25T06:20:24.188008850Z","modified_time":"2026-11-25T06:05:33Z"},{"versions":["1.0.4"],"id":"IN-MAL-2026-023093","import_time":"2026-11-25T06:20:24.139288825Z","modified_time":"2026-11-25T06:05:26Z","sha256":"ee6004ae876cea7ab83329816f8324c0d07a89f6499ebbd3dad1028f7e9754cc","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/juyip-parser-helper/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/juyip-parser-helper/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/juyip-parser-helper/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/juyip-parser-helper/v/1.0.4"}],"affected":[{"package":{"name":"juyip-parser-helper","ecosystem":"npm","purl":"pkg:npm/juyip-parser-helper"},"versions":["1.0.1","1.0.2","1.0.0","1.0.4"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"filename":"juyip-parser-helper-1.0.1.tgz","hashes":{"sha1":"44cb1908454d6022ba4c869abe8a86a7c3b44fca","sha512_sri":"sha512-30UzrU8K0H5+pGB/tL5SefZzTmFOjxog6MmcQc/MY0s9os+129u9TqST2s4h6Jjz2y8Nc9WFgQjjuDpAOXBHPw=="}}],"evidence_files":[{"path":"index.js","sha256":"680e16c34dfa22b3812c0a2fc3e528c1f1c0adaf4a58fe4628a5114f05bcc22d","tlsh":"9b6152202efe614000db31b357fbdd9e75a1e2163129d980b49cc5845fa4868eebbbcc"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/juyip-parser-helper/MAL-2026-20553.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}