Malicious Code Detected in bufbuild-core Package (npm) - Vulnerability MAL-2025-6231
Summary
MAL-2025-6231: Malicious code in bufbuild-core (npm). Affects bufbuild-core versions >= 1.0.0. 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 bufbuild-core package is a library used in Node.js applications for building and manipulating protocol buffers. It provides essential functionalities for developers working with data serialization and communication protocols. However, the package version 1.0.0 has been flagged for malicious behavior, raising concerns about its security and integrity.
Vulnerability Detail
The vulnerability in bufbuild-core arises from its communication with a domain associated with malicious activities. This behavior poses significant risks, including data exfiltration, unauthorized access, and potential exploitation of the systems using this package. The malicious nature of the package was identified by the OpenSSF Package Analysis project, which highlighted its potential to compromise user data and application security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bufbuild-core
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, you can avoid using the bufbuild-core package altogether and look for alternative libraries that provide similar functionalities without the associated risks. Additionally, you can monitor your application for any suspicious activities while using the current version.
Conclusion
The bufbuild-core package has been identified as malicious due to its communication with harmful domains. Users are urged to take immediate action to remove the vulnerable version and consider alternatives to safeguard their applications. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for bufbuild-core →
FAQ
bufbuild-core is a Node.js library used for working with protocol buffers, enabling efficient data serialization and communication.
The package has been found to communicate with a domain linked to malicious activities, posing security risks to applications that use it.
You can use Vulert, which monitors open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can alert you in real-time about any vulnerabilities, including this one.
It is advisable to uninstall bufbuild-core version 1.0.0 and replace it with a secure alternative or an updated version if available.
You can use the Vulert playground to check if your application is affected by this vulnerability without needing to sign up. Simply visit Vulert Scanner and upload your package-lock.json file.