set-cookie-ease@1.1.5
Malicious code in set-cookie-ease (npm)
Analysis
Package "set-cookie-ease" is a trojanized clone of the legitimate js-cookie library. The CJS build (dist/cookie.ease.js) contains an injected remote code execution payload in the Cookies.set() function. When called in a Node.js environment (where document is undefined), it base64-decodes a URL pointing to jsonkeeper[.]com, fetches the content from that URL using the axios dependency, and executes it via eval() — enabling arbitrary code execution controlled by the remote server. The ESM and minified builds are clean, so the payload only triggers when using Node.js require().
- analyzed by
- Leitwacht
- first seen
- Jun 23, 2026, 06:42 AM
- analyzed
- Jun 23, 2026, 06:44 AM
Related advisories
- analysis-chart@2.0.8
- web3-token-helper@1.1.3
- zod-pino@1.0.122
- node-core-libs@1.0.0
- tailwindcss-effector@1.7.0
- assertcore@3.1.7
- chalk-ultra@12.0.3
- test-package-sajsdkashdj@2.1.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.