Malicious Code Injection in wulan-37 Package: A Threat to npm Users
Summary
MAL-2025-170562: Malicious code in wulan-37 (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 wulan-37 package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, its functionality has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the wulan-37 package originates from its malicious code, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to flood the npm registry with numerous variants, thereby polluting it and potentially compromising other packages. The malicious payload can lead to unauthorized access and manipulation of the developer's environment, posing risks to both the developer and users of the affected packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wulan-37
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 wulan-37 package from your project by executing the following command: npm uninstall wulan-37. This will prevent any malicious code from executing until a fix is available.
Conclusion
The wulan-37 package poses a significant security risk due to its malicious code that alters package configurations and floods the npm registry. It is crucial for developers to take immediate action by updating or removing the package to safeguard their projects. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for wulan-37 →
FAQ
The wulan-37 package is an npm package that is part of a token reward campaign, designed to automatically generate and publish derivative packages.
The vulnerability can lead to unauthorized modifications in your project's package.json file, potentially compromising your project's integrity and security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
If you cannot update the package, it is advisable to uninstall it from your project to mitigate any potential risks.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.