Malicious Code Injection in danielmoore Package: A Threat to npm Users
Summary
MAL-2025-171079: Malicious code in danielmoore (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 danielmoore package is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package, like many others, is intended to facilitate the development and deployment of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities, leading to significant security concerns for developers who may unknowingly use it.
Vulnerability Detail
The vulnerability in the danielmoore package stems from its association with the tea.xyz token reward campaign. This package contains malicious scripts designed to automatically publish derivative packages with randomized names, effectively polluting the npm registry. The payload modifies the package.json file to remove private flags and alters version numbers, which can lead to unauthorized access and manipulation of projects that depend on this package. The malicious activity can inflate developer reputation scores fraudulently, posing a risk to the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall danielmoore
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 danielmoore package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your dependencies using tools like Vulert to monitor for vulnerabilities.
Conclusion
The danielmoore package poses a significant threat to npm users due to its malicious code designed to manipulate the npm registry. It is essential to remove this package from your projects and monitor your dependencies for vulnerabilities using tools like Vulert. Staying informed and proactive can help safeguard your applications from such threats.
See every vulnerability recorded for danielmoore →
FAQ
The danielmoore package is an npm package that has been identified as part of a malicious campaign aimed at manipulating the npm registry.
The vulnerability can lead to unauthorized changes in your project, including the potential for malicious code execution and dependency pollution.
You should uninstall the danielmoore package immediately using the command npm uninstall danielmoore and check your project for any other affected packages.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time. It requires only your package-lock.json file for analysis.
Absolutely! You can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.