Malicious Code Injection in faresmacaron: A Threat to npm Users
Summary
MAL-2025-171196: Malicious code in faresmacaron (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
faresmacaron is an npm package that is part of a broader ecosystem of packages often associated with token reward campaigns. These packages are designed to automate the generation and publication of derivative packages, which can lead to reputation inflation for developers involved in such schemes. The functionality of faresmacaron is compromised due to the presence of malicious scripts that alter its behavior and integrity.
Vulnerability Detail
The vulnerability in faresmacaron originates from its association with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The malicious code modifies the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior not only pollutes the npm registry but also poses risks to developers who may unknowingly use these compromised packages, leading to potential security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall faresmacaron
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 faresmacaron package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The faresmacaron package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry with compromised versions. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity and security of their projects.
See every vulnerability recorded for faresmacaron →
FAQ
The faresmacaron package contains malicious code that alters its package.json file and publishes derivative packages, which can compromise the integrity of your project.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed faresmacaron, it is recommended to remove it immediately and check for any updates or patches from the npm registry.
Using the faresmacaron package can lead to security vulnerabilities, including unauthorized access to your project and potential data breaches.
To prevent similar vulnerabilities, regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay informed about known vulnerabilities in the packages you use.