Malicious Code Injection in lina-semur54-riris: Exploiting npm Packages for Token Rewards
Summary
MAL-2025-87859: Malicious code in lina-semur54-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 'lina-semur54-riris' is part of a broader campaign that exploits npm's package management system. It is associated with the tea.xyz token reward initiative, which has led to the proliferation of numerous malicious packages. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names, thereby compromising the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'lina-semur54-riris' stems from its malicious payload that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, which can lead to a polluted npm registry. This behavior not only affects the reputation of developers but also poses a risk to users who may inadvertently install these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lina-semur54-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 workaround, avoid using the 'lina-semur54-riris' package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'lina-semur54-riris' package poses significant risks due to its malicious behavior aimed at exploiting npm's package management system. It is crucial for developers to remove this package from their projects and to utilize tools like Vulert for ongoing monitoring of vulnerabilities in their applications.
See every vulnerability recorded for lina-semur54-riris →
FAQ
The primary risk is that it modifies package.json to remove private flags and generates random package names, which can lead to security vulnerabilities in applications that use it.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
You should uninstall the package immediately using 'npm uninstall lina-semur54-riris' and monitor your application for any unusual behavior.
Yes, consider using other reputable npm packages that offer similar functionalities without the malicious behavior associated with lina-semur54-riris.
Vulert monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file, making it easy to stay informed about potential risks.