Malicious Code Injection in lina-gandul89-apidev Package
Summary
MAL-2025-87802: Malicious code in lina-gandul89-apidev (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 lina-gandul89-apidev 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 token rewards. However, it has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the lina-gandul89-apidev package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which are then continuously republished to pollute the npm registry. This behavior can lead to unauthorized access, reputation damage for developers, and a cluttered npm ecosystem, making it difficult for legitimate packages to be found.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lina-gandul89-apidev
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 remove the lina-gandul89-apidev package from your project to mitigate the risk. Use the following command: 'npm uninstall lina-gandul89-apidev'. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The lina-gandul89-apidev package has been compromised with malicious code that poses a significant risk to developers and their projects. It is crucial to take immediate action by updating or removing the package and utilizing tools like Vulert for ongoing monitoring.
See every vulnerability recorded for lina-gandul89-apidev →
FAQ
It is an npm package associated with the tea.xyz token reward campaign that automates the generation and publication of packages.
The malicious code can lead to unauthorized changes in your package.json file, potentially compromising your project's integrity and security.
You should uninstall the package immediately and check for any unauthorized changes in your project files.
Yes, Vulert can monitor your package-lock.json file for vulnerabilities in real-time, alerting you to any issues without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.