Malicious Code Injection in handsome_smelt_0xrequest: A Threat to npm Ecosystem
Summary
MAL-2025-103587: Malicious code in handsome_smelt_0xrequest (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 package 'handsome_smelt_0xrequest' is part of a series of malicious npm packages linked to the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior not only clutters the npm registry but also poses a significant risk to developers who may unknowingly incorporate these packages into their projects.
Vulnerability Detail
The vulnerability in 'handsome_smelt_0xrequest' stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to pollute the npm registry and can lead to security risks for developers who rely on the integrity of the packages they use. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall handsome_smelt_0xrequest
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 measure, avoid using the 'handsome_smelt_0xrequest' package and consider using alternative packages that provide similar functionality without the associated risks. Regularly audit your dependencies using tools like Vulert to monitor for vulnerabilities.
Conclusion
The 'handsome_smelt_0xrequest' package poses a significant threat to the npm ecosystem due to its malicious behavior. It is essential for developers to be vigilant and remove any instances of this package from their projects. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for handsome_smelt_0xrequest →
FAQ
The package contains malicious code that modifies package.json files and floods the npm registry with derivative packages.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without any signup.
You should uninstall the package immediately and check your package-lock.json for any references to it.
Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just your package-lock.json.
Regularly audit your dependencies and use tools like Vulert to stay informed about potential vulnerabilities in your packages.