Malicious Code Injection in putri-nasi74-remi Package - npm Vulnerability
Summary
MAL-2025-107516: Malicious code in putri-nasi74-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 putri-nasi74-remi package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious scripts embedded within the putri-nasi74-remi package. These scripts are designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm developers' reputations and the integrity of the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-nasi74-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 putri-nasi74-remi package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your package-lock.json file to identify and remove any suspicious packages.
Conclusion
The putri-nasi74-remi package poses a significant risk to developers and the npm ecosystem due to its malicious behavior. It is essential to take immediate action by removing this package and monitoring your dependencies for any further vulnerabilities. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for putri-nasi74-remi →
FAQ
The putri-nasi74-remi package is an npm package linked to the tea.xyz token reward campaign, designed to automatically generate and publish derivative packages.
This vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your project's dependencies, potentially harming your reputation as a developer.
You should uninstall the putri-nasi74-remi package immediately using the command npm uninstall putri-nasi74-remi and check for any other malicious packages.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time using your package-lock.json file. You can also check your application against known vulnerabilities using the Vulert playground.
There is no patch available for the putri-nasi74-remi package as it is inherently malicious. The best course of action is to remove it from your project.