Skip to main content
MalwarePublished

set-cookie-ease (npm) · Malicious Code

Affects set-cookie-easeSource GCVE Database

0

Malicious package : remove set-cookie-ease and rotate any secrets on hosts that installed it.

Data as of 26 Jun 2026, 22:36 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6500

What to do

Remove set-cookie-ease from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmset-cookie-easeAffected
  • =1.1.5
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…