Malicious Code Injection in nacho-bunian-jun Package: A Threat to npm Users
Summary
MAL-2025-161723: Malicious code in nacho-bunian-jun (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 nacho-bunian-jun package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to significant security risks for developers and users alike.
Vulnerability Detail
The vulnerability in the nacho-bunian-jun package stems from its involvement in a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only compromises the integrity of the npm registry but also poses a risk to developers who may unknowingly install these malicious packages, potentially leading to unauthorized access or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nacho-bunian-jun
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 nacho-bunian-jun package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities in real-time. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The nacho-bunian-jun package poses a significant security risk due to its involvement in a malicious npm campaign. It is crucial for developers to be vigilant and remove any affected packages from their projects. Utilizing tools like Vulert can enhance your security posture by providing real-time monitoring for vulnerabilities.
See every vulnerability recorded for nacho-bunian-jun →
FAQ
The nacho-bunian-jun package is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
If you have the nacho-bunian-jun package installed, your project may be at risk of malicious code execution, which can lead to data breaches or unauthorized access.
You should uninstall the nacho-bunian-jun package immediately and monitor your project for any signs of compromise.
Yes, tools like Vulert can help monitor your project for open-source vulnerabilities in real-time using just the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.