Malicious Code Detected in buffer-hor Package - MAL-2025-16289
Summary
MAL-2025-16289: Malicious code in buffer-hor (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 buffer-hor package is an npm library designed for handling buffer operations in JavaScript applications. It is commonly used for data manipulation and processing tasks. However, this package has been found to contain malicious code that poses significant security risks to applications utilizing it.
Vulnerability Detail
The vulnerability in the buffer-hor package stems from the introduction of malicious code that can compromise the integrity and security of applications. This code may allow unauthorized access to sensitive data or facilitate other malicious activities. The vulnerability was introduced in version 0 and affects all subsequent versions, making it critical for users to address this issue promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall buffer-hor
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 measure, users can replace the buffer-hor package with an alternative library that provides similar functionality without the associated risks. For example, consider using the built-in Buffer class in Node.js or other reputable npm packages that handle buffer operations securely.
Conclusion
The buffer-hor package has been identified as containing malicious code that poses serious security risks. Users are advised to remove the package and seek alternatives to ensure the safety of their applications. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.
See every vulnerability recorded for buffer-hor →
FAQ
The buffer-hor package is an npm library used for buffer operations in JavaScript applications.
The package contains malicious code that can compromise application security and data integrity.
You can use Vulert to monitor and alert for vulnerabilities in your application. Visit Vulert Scanner to check if your application is affected without any signup.
You should remove the buffer-hor package from your project immediately and consider using an alternative library.
Currently, there is no patched version available for the buffer-hor package, so removal is the recommended action.
Related vulnerabilities
Recent vulnerabilities recorded for buffer-hor.