Malicious Package in buffer-xnr

buffer-xnr Updated 02 Oct 2025

Summary

03/09/2020
CRITICAL
No i
Critical
9.8

GHSA-c4hh-fg8x-6h9p: Malicious Package in buffer-xnr. Affects buffer-xnr versions >= 0.0.0. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The buffer-xnr package is an npm package that is used for buffer manipulation. It provides various functions and utilities for working with buffers in JavaScript. The package is widely used in applications that require buffer operations, such as network protocols, cryptography, and data serialization. However, version 2.0.2 of the buffer-xnr package contained malicious code that specifically targeted the Ethereum cryptocurrency. This code performed unauthorized transactions to wallets not controlled by the user, potentially leading to the loss of Ethereum funds.

Vulnerability Detail

The vulnerability in buffer-xnr version 2.0.2 allowed an attacker to execute unauthorized transactions targeting Ethereum wallets. The malicious code was designed to exploit the package's functionality and perform transactions without the user's consent. This could result in significant financial losses for users who had installed and used the affected version of the package. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Conclusion

The buffer-xnr package version 2.0.2 contained malicious code that targeted Ethereum wallets and performed unauthorized transactions. To mitigate this vulnerability, it is crucial to remove the affected package, review wallet transactions, and consider using alternative buffer manipulation libraries. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for buffer-xnr →

Share this vulnerability

FAQ

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. The playground allows you to analyze your package-lock.json file and provides real-time monitoring and alerts for open-source vulnerabilities in your software.

If your application is affected by this vulnerability, you should immediately remove the buffer-xnr package version 2.0.2 from your environment. Review your Ethereum wallet transactions and balances to ensure no unauthorized transactions have occurred. Consider updating to a non-malicious version of the package or using an alternative buffer manipulation library.

Recovering lost Ethereum funds can be challenging. If your funds have been transferred to wallets not controlled by you, it is unlikely that you will be able to recover them. It is important to take preventive measures, such as removing the malicious package and regularly monitoring your wallet transactions, to avoid such losses in the future.

Yes, there are several alternative buffer manipulation libraries available in the npm ecosystem. Some popular options include 'buffer', 'bufferutil', and 'safe-buffer'. It is recommended to choose a library that is actively maintained, has a good security track record, and is compatible with your application's requirements.

To prevent similar vulnerabilities in the future, it is important to follow best practices for package management. Regularly update your dependencies to the latest non-malicious versions, review the security advisories and vulnerability reports for the packages you use, and consider using tools like Vulert to monitor and alert you about open-source vulnerabilities in your software.

Related vulnerabilities

Recent vulnerabilities recorded for buffer-xnr.

How To Fix

No fixed version is published for this vulnerability.

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