Malicious Code Injection in emilybarnes Package: npm Vulnerability
Summary
MAL-2025-171145: Malicious code in emilybarnes (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 emilybarnes package is part of the npm ecosystem and is typically used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is particularly vulnerable due to its association with scripts designed to manipulate package metadata and inflate developer reputation scores.
Vulnerability Detail
The vulnerability in the emilybarnes package stems from its involvement in the tea.xyz token reward campaign, which utilizes malicious scripts (such as auto.js and autopublish.js) to modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to pollution of the npm registry. This can result in compromised developer reputations and potential security risks for applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall emilybarnes
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 prevent the installation of the emilybarnes package by using the following command to uninstall it: npm uninstall emilybarnes. Additionally, consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The emilybarnes package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and their applications. It is crucial to take immediate action by removing the package and monitoring for any updates or patches. Utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for emilybarnes →
FAQ
The emilybarnes package is an npm package that has been identified as part of a malicious campaign to manipulate package metadata and inflate developer reputation scores.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your application and affecting its dependencies.
It is advised to uninstall the emilybarnes package immediately and monitor for any updates or patches that may address the vulnerability.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software by analyzing the package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.