Malicious Code Detected in bunker-json Package - MAL-2025-16349
Summary
MAL-2025-16349: Malicious code in bunker-json (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-json package is a Node.js library designed for handling JSON data in a secure and efficient manner. It is commonly used in various applications for parsing and manipulating JSON objects. However, recent findings have revealed that this package contains malicious code, posing significant risks to users and their applications.
Vulnerability Detail
The vulnerability in the bunker-json package originates from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may lead to unauthorized access, data breaches, or other harmful actions that can affect the integrity and confidentiality of user data. The vulnerability is present in all versions starting from 0, making it critical for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bunker-json
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, it is advisable to remove the bunker-json package from your project until a secure version is released. You can do this by running the following command: npm uninstall bunker-json. Consider using alternative libraries that provide similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the bunker-json package highlights the importance of vigilance in managing open-source dependencies. Users are urged to take immediate action to mitigate risks by updating or removing the affected package. Utilizing tools like Vulert can further enhance security by providing real-time alerts for vulnerabilities.
See every vulnerability recorded for bunker-json →
FAQ
bunker-json is a Node.js library used for parsing and manipulating JSON data.
The malicious code can lead to unauthorized access and data breaches, compromising application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Currently, there is no patched version available. Users should monitor the package repository for updates.
If removal is not possible, consider implementing additional security measures and monitoring your application closely for any suspicious activity.