Malicious Code Injection in dian-sroto98-remi: A Threat to npm Package Integrity
Summary
MAL-2025-101544: Malicious code in dian-sroto98-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 dian-sroto98-remi is part of a broader campaign targeting npm, where malicious actors flood the registry with compromised packages. These packages are often linked to token reward schemes, designed to inflate developer reputation scores. The malicious nature of this package lies in its ability to modify critical files and republish itself under various names, thereby compromising the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in dian-sroto98-remi originates from its association with the tea.xyz token reward campaign. It contains scripts that automatically modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially lead to the installation of compromised packages by unsuspecting developers.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dian-sroto98-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 dian-sroto98-remi package and replace it with a trusted alternative. Always verify the integrity of packages before installation.
Conclusion
The dian-sroto98-remi package poses a significant threat to the integrity of npm packages due to its malicious code that modifies package files and republishes itself. It is crucial for developers to remain vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for dian-sroto98-remi →
FAQ
dian-sroto98-remi is an npm package that has been identified as malicious, associated with a campaign that aims to inflate developer reputation scores through the publication of compromised packages.
If your project uses the dian-sroto98-remi package, it may inadvertently publish modified versions of your package or install other compromised packages, leading to security risks.
You should immediately uninstall the dian-sroto98-remi package using the command npm uninstall dian-sroto98-remi and review your project's dependencies for any other potentially compromised packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application against known vulnerabilities using the Vulert playground without any signup.
There are no patches available for the dian-sroto98-remi package as it is inherently malicious. The best course of action is to remove it from your project.