Malicious Code Vulnerability in emmarichardson Package: npm Exploitation
Summary
MAL-2025-171160: Malicious code in emmarichardson (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 emmarichardson package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is implicated in a malicious campaign that aims to inflate developer reputation scores through the generation of derivative packages. The campaign leverages scripts that automatically publish variants of the package with altered metadata, contributing to registry pollution and potential security risks for users.
Vulnerability Detail
The vulnerability originates from the emmarichardson package being part of a malicious campaign associated with the tea.xyz token reward initiative. It contains scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. This behavior can lead to the proliferation of untrusted packages in the npm registry, increasing the risk of dependency confusion and potential exploitation of applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall emmarichardson
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 use the following command to prevent the installation of the emmarichardson package in your project: npm install --no-save emmarichardson. However, this does not eliminate the risk associated with existing installations.
Conclusion
The emmarichardson package poses a significant security risk due to its involvement in a malicious campaign that modifies package metadata and proliferates untrusted packages. It is essential to remove this package from your projects and monitor for any potential vulnerabilities using tools like Vulert.
See every vulnerability recorded for emmarichardson →
FAQ
The emmarichardson package is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through automated publishing of derivative packages.
This vulnerability can lead to the introduction of untrusted packages into your application, potentially exposing it to security risks such as dependency confusion and exploitation.
If you have installed the emmarichardson package, it is crucial to uninstall it immediately using the command: npm uninstall emmarichardson.
There are no patches available for the emmarichardson package, as it is recommended to remove the package entirely from your project.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.