Skip to main content
MalwarePublished

mchain-sdk (npm) · Malicious Code

Affects mchain-sdkSource GCVE Database

0

Malicious package : remove mchain-sdk and rotate any secrets on hosts that installed it.

Data as of 10 Jul 2026, 10:10 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10012

What to do

Remove mchain-sdk 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
npmmchain-sdkAffected
  • =4.2.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 mchain-sdk npm package version 4.2.5 is a malicious typosquatting package that executes attacker-controlled JavaScript code both during installation and at runtime. It fetches and runs remote code from a mutable anonymous paste URL disguised as an API key, leading to full system compromise. The package mimics a legitimate library to evade detection. Removal alone may not fully remediate the compromise, and all secrets on affected systems should be rotated immediately.

References

Community reviews

Loading reviews…