Malicious Code Injection in calemcroissant: A Threat to npm Packages
Summary
MAL-2025-170996: Malicious code in calemcroissant (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
calemcroissant is an npm package that was part of a broader campaign targeting the npm ecosystem. It is designed to facilitate token rewards for developers through the tea.xyz protocol. However, this package has been identified as malicious, containing scripts that manipulate package metadata and flood the npm registry with derivative packages, thereby compromising the integrity of the ecosystem.
Vulnerability Detail
The vulnerability in calemcroissant originates from its association with the tea.xyz token reward campaign, which has been identified as a source of malicious npm packages. The package includes scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry, potentially leading to 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 calemcroissant
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 workaround, consider using alternative packages that provide similar functionality without the associated risks. Always review the package's source and community feedback before integrating it into your project.
Conclusion
The calemcroissant package poses a significant risk due to its malicious behavior, which can compromise the integrity of applications relying on npm packages. It is crucial to remove this package and monitor your dependencies for vulnerabilities to ensure the security of your software.
See every vulnerability recorded for calemcroissant →
FAQ
calemcroissant is an npm package that was part of a malicious campaign to inflate developer reputation scores through the tea.xyz token reward system.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should uninstall the calemcroissant package immediately and check your project for any dependencies that may have been affected.
Yes, tools like Vulert can monitor your package-lock.json file for vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.