Malicious Code Detected in buffdr-xor Package - Immediate Action Required
Summary
MAL-2025-16280: Malicious code in buffdr-xor (npm). Affected versions are not published. 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 buffdr-xor package is an npm library designed for XOR operations on buffers. It is commonly used in applications that require data manipulation and encryption. However, this package has been found to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the buffdr-xor package stems from the inclusion of malicious code that can compromise the integrity and security of applications using this library. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall buffdr-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
If immediate updating is not possible, consider removing the buffdr-xor package from your project and replacing it with a trusted alternative that provides similar functionality without the security risks.
Conclusion
The buffdr-xor package has been identified as containing malicious code, posing significant risks to applications that utilize it. It is crucial to update to a secure version or remove the package entirely to safeguard your application from potential threats.
See every vulnerability recorded for buffdr-xor →
FAQ
The buffdr-xor package is used for performing XOR operations on buffers, often utilized in data manipulation and encryption tasks.
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 check your package-lock.json without any signup.
Using the buffdr-xor package with the malicious code can lead to unauthorized access, data breaches, and potential exploitation of your application.
Yes, you can mitigate risks by removing the buffdr-xor package and replacing it with a secure alternative until an update can be performed.
The vulnerability was discovered by Amazon Inspector, which is responsible for identifying security issues in open-source packages.
Related vulnerabilities
Recent vulnerabilities recorded for buffdr-xor.