Malicious Code Injection in hamburger-notthedevs Package
Summary
MAL-2025-103523: Malicious code in hamburger-notthedevs (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 hamburger-notthedevs package is an npm library that is part of the tea.xyz token reward campaign. It is designed to facilitate the development of applications by providing reusable components. However, this package has been compromised, leading to significant security concerns due to its malicious behavior.
Vulnerability Detail
The vulnerability stems from the package's inclusion in a campaign that floods npm with malicious packages. It contains scripts that automatically modify the package.json file, removing private flags and altering version numbers. This allows the package to generate random names and continuously republish itself, polluting the npm registry and potentially affecting other developers' projects. The malicious payload can lead to unauthorized access, data breaches, and a tarnished reputation for developers who unknowingly use this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hamburger-notthedevs
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 hamburger-notthedevs package from your project by executing the command: 'npm uninstall hamburger-notthedevs'. This will prevent any malicious code from executing in your application until a safe version is released.
Conclusion
The hamburger-notthedevs package has been identified as containing malicious code that can compromise application security. It is crucial for developers to take immediate action by uninstalling the package and monitoring for updates. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for hamburger-notthedevs →
FAQ
The hamburger-notthedevs package is an npm library that was intended to provide reusable components for application development but has been compromised with malicious code.
The malicious code modifies your package.json file, removes private flags, and can lead to unauthorized republishing of the package, potentially compromising your application's security.
If you have installed the hamburger-notthedevs package, you should uninstall it immediately and monitor for any updates or patches that address the vulnerability.
Yes, you can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access or installation.
You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.