Malicious Code Detected in bodyfuel: A Critical npm Vulnerability
Summary
MAL-2025-15927: Malicious code in bodyfuel (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The 'bodyfuel' package is a Node.js library designed for managing and manipulating body composition data. It offers functionalities that allow developers to integrate health and fitness metrics into their applications. However, it has been identified to contain malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the 'bodyfuel' package originates from the inclusion of malicious code that can compromise the integrity of applications utilizing this library. This code may lead to unauthorized access, data breaches, or other harmful actions that can affect both developers and end-users. The malicious nature of this code makes it imperative for users to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bodyfuel
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, consider removing the 'bodyfuel' package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall bodyfuel'. This will help mitigate the risk of exposure to the malicious code.
Conclusion
The discovery of malicious code in the 'bodyfuel' package highlights the importance of vigilance in managing open-source dependencies. Users are urged to update or remove the package to safeguard their applications from potential threats.
See every vulnerability recorded for bodyfuel →
FAQ
The malicious code can potentially allow unauthorized access to sensitive data and compromise application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If an immediate update is not possible, consider removing the package as a temporary measure to protect your application.
While specific exploits have not been detailed, the presence of malicious code indicates a high risk of exploitation.
Detailed information can be found in the GitHub repository of the package, specifically at https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bodyfuel/MAL-2025-15927.json.