Skip to main content

Malicious code in mutex-plus (npm)

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

Description

The mutex-plus npm package version 3.0.2 contains malicious code hidden in its Mutex.js file. This code decrypts and executes a concealed payload when a specially crafted callback with a specific jobId is passed to the runExclusive() function. The payload is AES-256-GCM encrypted and only decryptable with the correct jobId, enabling remote code execution on the host running the package.

Affected software

npmghsa
mutex-plus
Affected versions
=3.0.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:24 UTC

Technical Analysis

The mutex-plus package version 3.0.2 includes a hidden branch in the runExclusive() method that triggers when a callback object contains a meta.jobId whose SHA-256 hash matches a hardcoded value. This branch decrypts an encrypted payload (lib/plusMutex.min.js) using AES-256-GCM with the jobId as the key, then executes the decrypted code as a detached Node.js process. The encrypted payload and its decryptor are obfuscated and disguised as TypeScript declaration files, which is unusual for a mutex primitive. This design allows an attacker who knows the correct jobId to achieve remote code execution on any system running this package version and invoking runExclusive with the crafted callback.

Potential Impact

An attacker with knowledge of the specific jobId can remotely execute arbitrary code on any system using mutex-plus version 3.0.2 by supplying a crafted callback to the runExclusive() function. This can lead to full compromise of the affected environment where this package is used.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using mutex-plus version 3.0.2 or audit and remove this package from your environment if present. Do not pass untrusted callback objects to the runExclusive() method.

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-14282
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4b4acd9273b49251555

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

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

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

Views: 23

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