Malicious Code Detected in node-calculator-b0e4: A Security Threat

node-calculator-b0e4 Updated 21 Nov 2025

Summary

19/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-190569: Malicious code in node-calculator-b0e4 (npm). Affects node-calculator-b0e4 versions 2.1.3. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

node-calculator-b0e4 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, raising concerns about its security and the potential risks it poses to users and their applications.

Vulnerability Detail

The vulnerability in node-calculator-b0e4 arises from its communication with a domain linked to malicious activities. This behavior indicates that the package may be executing commands that can compromise the security of the host system. Users of this package could face data breaches, unauthorized access, or other malicious actions as a result of this vulnerability.

How To Fix

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

npm uninstall node-calculator-b0e4

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-b0e4 package and instead implement basic arithmetic functions directly in their code. For example, you can create a simple calculator function as follows:

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 discovery of malicious code in node-calculator-b0e4 highlights the importance of scrutinizing third-party packages for security vulnerabilities. Users are advised to take immediate action by removing the affected package and considering safer alternatives to protect their applications.

See every vulnerability recorded for node-calculator-b0e4 →

Share this vulnerability

FAQ

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

The package communicates with a domain associated with malicious activity and executes commands that may compromise security.

You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

You should uninstall the package immediately and consider using alternative methods for arithmetic calculations.

Currently, there is no patched version available. It is recommended to remove the package and look for alternatives.

How To Fix

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

npm uninstall node-calculator-b0e4

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