Skip to main content

Malicious code in mutex-lite (npm)

0
Critical
Published: 08/19/2026 (08/19/2026, 07:52:29 UTC)
Source: GCVE Database
Product: mutex-lite

Description

The npm package mutex-lite version 1.4.2 is a malicious package impersonating the legitimate async-mutex library. It exports a similar Mutex API but includes hidden code that decrypts and executes an encrypted payload when triggered by a specific jobId value. This payload runs detached Node.js processes silently, potentially targeting Ethereum wallet operations via the bundled ethers library. This results in arbitrary code execution within applications that use the package and invoke the runExclusive method with the attacker-controlled jobId.

Affected software

npmghsa
mutex-lite
Affected versions
=1.4.2

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: 08/19/2026, 14:16:39 UTC

Technical Analysis

The mutex-lite npm package (version 1.4.2) masquerades as the async-mutex library but contains malicious modifications. The Mutex.prototype.runExclusive method covertly requires an obfuscated module that decrypts an AES-256-GCM encrypted payload using a key derived from callback.meta.jobId. When triggered by a hardcoded SHA1 gate, the payload is decrypted, written to a temporary file, and executed as a detached Node.js process with suppressed output. The encrypted payload includes the ethers library, indicating a focus on Ethereum wallet operations. This leads to arbitrary code execution under the context of the consuming application when the attacker-supplied jobId is used.

Potential Impact

Applications that depend on mutex-lite version 1.4.2 and invoke the runExclusive method with the attacker-known jobId are vulnerable to arbitrary code execution. The malicious payload runs detached and silently, potentially compromising Ethereum wallet operations or other sensitive functionality within the host environment. This could lead to unauthorized actions, data theft, or further system compromise.

Mitigation Recommendations

No official patch or remediation is currently documented for mutex-lite version 1.4.2. Users should immediately remove and replace this package with the legitimate async-mutex library or other trusted alternatives. Avoid using mutex-lite version 1.4.2 and audit dependencies to ensure no malicious packages are present. Monitor for suspicious processes spawned by Node.js and verify package integrity 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-14281
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4b4acd9273b49251557

Added to database: 08/19/2026, 13:50:44 UTC

Last enriched: 08/19/2026, 14:16:39 UTC

Last updated: 10/02/2026, 13:51:49 UTC

Views: 35

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