Malicious Code Detected in node-calculator-cf8c: A Critical Security Threat

node-calculator-cf8c Updated 21 Nov 2025

Summary

19/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-190578: Malicious code in node-calculator-cf8c (npm). Affects node-calculator-cf8c versions 2.1.2. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

node-calculator-cf8c is an npm package designed for performing basic arithmetic calculations. It is intended to provide users with a simple interface for mathematical operations. However, the package has been flagged for malicious behavior, specifically in version 2.1.2, which compromises the security of applications that utilize it.

Vulnerability Detail

The vulnerability in node-calculator-cf8c arises from its ability to communicate with a domain linked to malicious activities. This behavior indicates that the package may execute harmful commands, potentially leading to unauthorized access, data breaches, or system compromise. The origin of this vulnerability has been traced back to the package's design, which allows it to perform actions that can be exploited by attackers.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall node-calculator-cf8c

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, you can avoid using the node-calculator-cf8c package altogether and implement basic arithmetic functions directly in your code. For example:

function add(a, b) {
  return a + b;
}

function subtract(a, b) {
  return a - b;
}

function multiply(a, b) {
  return a * b;
}

function divide(a, b) {
  if (b === 0) throw new Error('Cannot divide by zero');
  return a / b;
}

Conclusion

The node-calculator-cf8c package poses a significant security risk due to its malicious behavior. Users are strongly encouraged to remove the package and implement safer alternatives to protect their applications from potential threats.

See every vulnerability recorded for node-calculator-cf8c →

Share this vulnerability

FAQ

node-calculator-cf8c is an npm package used for performing basic arithmetic calculations.

The package has been flagged for communicating with a domain associated with malicious activities and executing harmful commands.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

It is advised to remove the package and update to a secure alternative or implement basic arithmetic functions directly in your code.

As of now, there is no patched version available for node-calculator-cf8c, so it is best to remove it and find a trusted alternative.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall node-calculator-cf8c

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback