MAL-2026-6500: Malicious code in set-cookie-ease (npm)
The npm package set-cookie-ease version 1.1.5 is a malicious typosquatting package masquerading as the legitimate js-cookie library. It contains code that executes arbitrary attacker-controlled JavaScript in Node.js or server-side rendering environments when Cookies.set is called with expires set to 0 or when document is undefined. This leads to remote code execution (RCE) with full host privileges. The package adds unexpected dependencies (axios and request) to support this behavior, despite advertising no dependencies. There is no official patch or remediation available at this time.
AI Analysis
Technical Summary
The set-cookie-ease npm package version 1.1.5 impersonates the legitimate js-cookie library but diverges in its implementation by including malicious code that triggers remote code execution in Node.js or SSR environments. Specifically, when Cookies.set is called with expires: 0 or when the global document object is undefined, the package fetches and executes attacker-controlled JavaScript from a mutable public JSON bin. This design allows the attacker to change the payload at any time, resulting in arbitrary code execution with full privileges on the host system. The package also adds axios and request dependencies contrary to its README claims, confirming its malicious intent. This is a clear case of a typosquatting attack with concrete installer harm.
Potential Impact
Exploitation of this package leads to remote code execution on the host running Node.js or server-side rendering frameworks such as Next.js, Nuxt, or Remix. The attacker can execute arbitrary JavaScript code with full privileges, potentially compromising the entire system. The malicious payload is dynamically fetched from a public mutable JSON bin, allowing the attacker to change the code executed at any time. This poses a severe risk to any project that installs and uses this package in vulnerable contexts.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove set-cookie-ease version 1.1.5 from their dependencies and replace it with the legitimate js-cookie package or another trusted alternative. Avoid using packages that are typosquatting or have suspicious dependencies. Monitor dependency sources carefully and verify package authenticity before installation.
MAL-2026-6500: Malicious code in set-cookie-ease (npm)
Description
The npm package set-cookie-ease version 1.1.5 is a malicious typosquatting package masquerading as the legitimate js-cookie library. It contains code that executes arbitrary attacker-controlled JavaScript in Node.js or server-side rendering environments when Cookies.set is called with expires set to 0 or when document is undefined. This leads to remote code execution (RCE) with full host privileges. The package adds unexpected dependencies (axios and request) to support this behavior, despite advertising no dependencies. There is no official patch or remediation available at this time.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The set-cookie-ease npm package version 1.1.5 impersonates the legitimate js-cookie library but diverges in its implementation by including malicious code that triggers remote code execution in Node.js or SSR environments. Specifically, when Cookies.set is called with expires: 0 or when the global document object is undefined, the package fetches and executes attacker-controlled JavaScript from a mutable public JSON bin. This design allows the attacker to change the payload at any time, resulting in arbitrary code execution with full privileges on the host system. The package also adds axios and request dependencies contrary to its README claims, confirming its malicious intent. This is a clear case of a typosquatting attack with concrete installer harm.
Potential Impact
Exploitation of this package leads to remote code execution on the host running Node.js or server-side rendering frameworks such as Next.js, Nuxt, or Remix. The attacker can execute arbitrary JavaScript code with full privileges, potentially compromising the entire system. The malicious payload is dynamically fetched from a public mutable JSON bin, allowing the attacker to change the code executed at any time. This poses a severe risk to any project that installs and uses this package in vulnerable contexts.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove set-cookie-ease version 1.1.5 from their dependencies and replace it with the legitimate js-cookie package or another trusted alternative. Avoid using packages that are typosquatting or have suspicious dependencies. Monitor dependency sources carefully and verify package authenticity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6500
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef7c927e9c79719000263
Added to database: 06/26/2026, 22:06:01 UTC
Last enriched: 06/26/2026, 22:36:21 UTC
Last updated: 06/26/2026, 22:36:21 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.