Embedded Malicious Code Affecting @ethersphere/bee-js package, versions =13.3.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-ETHERSPHEREBEEJS-22388471
  • published10 Nov 2026
  • disclosed8 Nov 2026
  • creditUnknown

Introduced: 8 Nov 2026

New Malicious CVE NOT AVAILABLE CWE-506  (opens in a new tab)

How to fix?

Avoid using all malicious instances of the @ethersphere/bee-js package.

Overview

@ethersphere/bee-js is a Javascript client for Bee

Affected versions of this package are vulnerable to Embedded Malicious Code that acts as a loader where the malicious payload is fetched separately. A threat actor compromised the release pipeline for Ethersphere, using the project's own GitHub automation to publish a tampered version of @ethersphere/bee-js to npm and a trojanized Swarm Desktop (0.56.2) to GitHub releases.

Malicious Behavior

The tampered package contains a small loader hidden within the scripts/generate-version.cjs file, which was promoted to run unconditionally as a postinstall hook. Upon installation, this loader reaches out to an external server (api[.]frameworkmetrics[.]xyz) to separately fetch a JavaScript payload. This secondary payload is then compiled and executed in-process with full Node.js privileges. The later stages of the malware utilize Ethereum smart contracts as dead drops to receive command-and-control (C2) addresses linked to the SleepyDuck/EtherDuck campaign.

Notes

  • The loader runs automatically on package managers that execute postinstall hooks by default (such as npm 11 and earlier, or classic Yarn).
  • Because the payload is fetched separately over the network, it allows the threat actors to minimize the code footprint and bypass static analysis of the initial package.

References

CVSS Base Scores

version 4.0
version 3.1