Critical Malicious Code Vulnerability in node-calculator-f2af Package
Summary
MAL-2025-192843: Malicious code in node-calculator-f2af (npm). Affects node-calculator-f2af versions 4.0.0. 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 node-calculator-f2af package is a JavaScript library available through npm, designed to perform various mathematical calculations. It is widely used in applications requiring arithmetic functionalities. However, this package has been identified to contain malicious code that poses significant security risks to users and their applications.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the node-calculator-f2af package, specifically in version 4.0.0. This code can potentially compromise the integrity of applications utilizing this package, leading to unauthorized access, data breaches, or other malicious activities. The origin of this vulnerability is linked to the package's distribution through npm, where it was uploaded with harmful intent.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-calculator-f2af
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, users can avoid using the node-calculator-f2af package until a secure version is released. Additionally, consider using alternative packages that provide similar functionalities without known vulnerabilities.
Conclusion
The node-calculator-f2af package has been identified with a critical vulnerability due to malicious code. Users are strongly advised to remove the affected version and monitor their applications for any potential threats. Utilizing tools like Vulert can help in identifying vulnerabilities in real-time.
See every vulnerability recorded for node-calculator-f2af →
FAQ
It is a JavaScript library available on npm for performing mathematical calculations.
The malicious code can lead to unauthorized access, data breaches, or other harmful activities within your application.
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.
Currently, there is no patched version available for the compromised version 4.0.0. It is advised to uninstall this version and look for alternatives.
If immediate updates are not possible, consider using alternative packages and monitor your application for any suspicious activities.