Malicious Code Detected in buffep-xor Package - Security Alert

buffep-xor Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-16283: Malicious code in buffep-xor (npm). Affected versions are not published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The buffep-xor package is an npm library designed for XOR operations, often used in cryptographic applications and data manipulation. It provides a simple interface for developers to perform XOR operations on strings and buffers. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.

Vulnerability Detail

The vulnerability in the buffep-xor package originates from the inclusion of malicious code that can compromise the integrity of applications using this library. This code may lead to unauthorized access, data breaches, or other malicious activities, potentially affecting user data and application performance. The issue was introduced in version 0 and remains unaddressed in subsequent releases, making it critical for developers to take immediate action.

How To Fix

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

npm uninstall buffep-xor

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 using alternative packages that provide similar functionality without the security risks. For example, you can use the 'crypto' module in Node.js for secure XOR operations. Here is a sample code snippet:

const crypto = require('crypto');

function xorBuffers(buffer1, buffer2) {
  const result = Buffer.alloc(buffer1.length);
  for (let i = 0; i < buffer1.length; i++) {
    result[i] = buffer1[i] ^ buffer2[i];
  }
  return result;
}

// Usage example
const buf1 = Buffer.from('Hello, World!');
const buf2 = Buffer.from('XOR Key');
const result = xorBuffers(buf1, buf2);
console.log(result.toString());

Conclusion

The buffep-xor package has been identified to contain malicious code, posing serious security risks to applications that utilize it. Developers are urged to uninstall the package and seek alternatives to safeguard their applications. Regular monitoring for vulnerabilities using tools like Vulert is recommended to maintain application security.

See every vulnerability recorded for buffep-xor →

Share this vulnerability

FAQ

The buffep-xor package is used for performing XOR operations on strings and buffers, commonly in cryptographic applications.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to use the Vulert playground without any signup.

You should uninstall the buffep-xor package immediately and consider using alternative libraries or methods for XOR operations.

Currently, there is no patch available for the buffep-xor package. The best course of action is to remove it from your project.

Using a package with malicious code can lead to unauthorized access, data breaches, and potential damage to your application's reputation and user trust.

Related vulnerabilities

Recent vulnerabilities recorded for buffep-xor.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

npm uninstall buffep-xor

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