LWA-2026-5862 MAL-2026-6500 ↗ confirmed malware

set-cookie-ease@1.1.5

Malicious code in set-cookie-ease (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool Transfer

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.