Malicious Code Injection in putra-martabak7-riris: npm Package Vulnerability
Summary
MAL-2025-89582: Malicious code in putra-martabak7-riris (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 'putra-martabak7-riris' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts that manipulate package metadata and publish variants to inflate developer reputation scores.
Vulnerability Detail
The vulnerability in 'putra-martabak7-riris' stems from its inclusion in a malicious campaign that utilizes autopublish scripts to alter the package.json file. This modification removes private flags, changes version numbers, and generates random package names, leading to pollution of the npm registry. The malicious behavior can compromise the integrity of the npm ecosystem and potentially affect applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putra-martabak7-riris
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 this package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly monitor your dependencies for vulnerabilities using tools like Vulert.
Conclusion
The 'putra-martabak7-riris' package has been identified as a vector for malicious code injection, posing significant risks to developers and applications. Immediate action is recommended to remove the package and monitor for vulnerabilities using tools like Vulert.
See every vulnerability recorded for putra-martabak7-riris →
FAQ
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of applications relying on the affected package.
You can use Vulert to monitor your package-lock.json for vulnerabilities. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately using 'npm uninstall putra-martabak7-riris' and look for alternatives.
While specific alternatives depend on your use case, consider searching the npm registry for packages that provide similar functionality without the malicious behavior.
Regularly audit your dependencies using tools like Vulert and stay updated on security advisories related to the packages you use.