Malicious Code Injection in kresna-pecel22-remi Package: A Threat to npm Users
Summary
MAL-2025-104879: Malicious code in kresna-pecel22-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 kresna-pecel22-remi package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing capabilities. It is designed to generate and publish derivative packages with randomized names, thereby inflating developer reputation scores for token rewards associated with the tea.xyz protocol.
Vulnerability Detail
The vulnerability in the kresna-pecel22-remi package stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes variants to pollute the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kresna-pecel22-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 workaround, you can avoid using the kresna-pecel22-remi package and consider alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your project's dependencies using tools like npm audit.
Conclusion
The kresna-pecel22-remi package poses a significant risk due to its malicious code that alters package metadata and repackages itself under random names. Developers should take immediate action to remove this package and monitor their dependencies for similar vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for kresna-pecel22-remi →
FAQ
It is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through automated publishing.
The malicious code can compromise your project's integrity by introducing unwanted changes and potentially harmful packages into your dependency tree.
You should remove the kresna-pecel22-remi package immediately and audit your project for any other potentially malicious dependencies.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.