Malicious Code Injection in kresna-sate87-remi: A Threat to npm Packages
Summary
MAL-2025-104885: Malicious code in kresna-sate87-remi (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 package 'kresna-sate87-remi' is part of a broader campaign associated with the tea.xyz token reward system, which has been known to flood the npm ecosystem with malicious packages. These packages are designed to manipulate developer reputation scores by automatically generating and publishing numerous derivative packages with randomized names. This behavior not only clutters the npm registry but also poses significant risks to developers who may unknowingly use these compromised packages.
Vulnerability Detail
The vulnerability in 'kresna-sate87-remi' originates from its association with malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of these variants. The ramifications include potential exposure of sensitive data, pollution of the npm registry, and a compromised development environment, which can affect the integrity 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 kresna-sate87-remi
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 measure, you can avoid using the 'kresna-sate87-remi' package altogether. If it is already part of your project, consider removing it from your package.json and running 'npm install' to clean up your dependencies.
Conclusion
The 'kresna-sate87-remi' package poses a significant risk due to its malicious code that alters package.json and floods the npm registry with derivative packages. It is essential to remove this package from your project and monitor your dependencies for any potential vulnerabilities using tools like Vulert.
See every vulnerability recorded for kresna-sate87-remi →
FAQ
The main threat is the injection of malicious code that modifies package.json, leading to the creation of numerous derivative packages that can compromise your development environment.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You should remove the package from your project and ensure that your dependencies are clean by running 'npm install' after updating your package.json.
Currently, there are no specific patches for the kresna-sate87-remi package. The best course of action is to remove it entirely from your project.
This vulnerability can lead to the exposure of sensitive data and compromise the integrity of your application, making it crucial to address immediately.