Skip to main content
MalwarePublished

weight2loss (npm) · Malicious Code

Affects weight2lossSource GCVE Database

0

Malicious package : remove weight2loss and rotate any secrets on hosts that installed it.

Data as of 7 Aug 2026, 07:43 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13485

What to do

Remove weight2loss 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
npmweight2lossAffected
  • =1.0.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 npm package 'weight2loss' version 1.0.5 contains malicious code in a setup.js file referenced by a postinstall hook. This code, if executed, steals sensitive credentials from the installer environment, exfiltrates them to an attacker-controlled server and email, downloads and executes additional malicious scripts, establishes persistent remote access via a cron job, and deletes itself to evade detection. The postinstall hook is misconfigured and does not auto-run on install in this exact version, but the malicious payload is fully functional if manually invoked or if the manifest is corrected. The package's stated purpose does not align with its malicious behavior.

References

Community reviews

Loading reviews…