Malicious Code Vulnerability in browser-compat-data Package
Summary
MAL-2026-1665: Malicious code in browser-compat-data (npm). Affects browser-compat-data versions 0.0.1. 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 browser-compat-data package is an npm library that provides compatibility data for web features across different browsers. It is widely used by developers to ensure that their web applications function correctly across various environments. However, this package has been identified to contain malicious code, which poses significant risks to users and applications relying on it.
Vulnerability Detail
The vulnerability originates from a malicious code injection in version 0.0.1 of the browser-compat-data package. This code can potentially compromise the security of applications that utilize this package, leading to unauthorized access, data breaches, or other harmful actions. The malicious code was identified by ReversingLabs, and it is crucial for developers to be aware of this issue to protect their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall browser-compat-data
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 remove the browser-compat-data package from your project until a secure version is released. You can do this by running the following command: npm uninstall browser-compat-data. This will prevent any potential exploitation of the malicious code.
Conclusion
The browser-compat-data package has been found to contain malicious code, posing significant risks to applications that utilize it. Developers are urged to update or remove the package to safeguard their projects. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for browser-compat-data →
FAQ
The browser-compat-data package is an npm library that provides compatibility data for web features across different browsers, helping developers ensure their applications work correctly in various environments.
The malicious code was discovered by ReversingLabs, who identified the vulnerability in version 0.0.1 of the browser-compat-data package.
Using the compromised package can lead to unauthorized access, data breaches, and other harmful actions that can compromise the security of your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application for this vulnerability using the Vulert playground at Vulert Scanner without any signup.
If you cannot update the package immediately, it is advisable to remove the browser-compat-data package from your project as a temporary measure to mitigate the risk.