Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

MAL-2026-6500: Malicious code in set-cookie-ease (npm)

0
Critical
Published: 06/26/2026 (06/26/2026, 02:18:30 UTC)
Source: GCVE Database
Product: set-cookie-ease

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

npmghsa
set-cookie-ease
Affected versions
=1.1.5

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

AILast updated: 06/26/2026, 22:36:21 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses