Malicious Code Detected in bunker-to-js Package
Summary
MAL-2025-16350: Malicious code in bunker-to-js (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 bunker-to-js package is an npm library designed for converting data structures into JavaScript objects. It is commonly used in web development to facilitate data manipulation and enhance application functionality. However, this package has been found to contain malicious code, posing a significant security risk to applications that rely on it.
Vulnerability Detail
The vulnerability in the bunker-to-js package arises from the inclusion of malicious code that can compromise the 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, making it crucial for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bunker-to-js
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 bunker-to-js package from your project if it is not essential. This can be done using the command: npm uninstall bunker-to-js. Alternatively, consider using a different library that provides similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the bunker-to-js package highlights the importance of regularly monitoring and updating dependencies in software projects. Developers should take immediate action to mitigate risks by updating or removing the affected package.
See every vulnerability recorded for bunker-to-js →
FAQ
bunker-to-js is an npm package used for converting data structures into JavaScript objects, commonly utilized in web development.
The malicious code found in the bunker-to-js package can lead to unauthorized access and potential data breaches.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
If an immediate update is not possible, consider removing the package or using an alternative library until a secure version is available.
Utilize tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time, ensuring you are alerted to any issues as they arise.