Malicious Code Injection in lavanyasharma Package: npm Vulnerability Summary
Summary
MAL-2025-171489: Malicious code in lavanyasharma (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 lavanyasharma package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing capabilities. The primary function of this package is to facilitate the distribution of JavaScript code, but it has been compromised to include harmful scripts that manipulate package metadata and inflate developer reputation scores.
Vulnerability Detail
The vulnerability originates from the lavanyasharma package being associated with the tea.xyz token reward campaign. It contains scripts that automatically generate and publish derivative packages with randomized names, effectively polluting the npm registry. The malicious payload alters the package.json file by removing private flags, changing version numbers, and continuously republishing variants, which can lead to a significant compromise of the npm ecosystem and developer trust.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lavanyasharma
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 workaround, you can monitor your project for any unintended consequences of this package by using tools like Vulert. You can check if your application is affected by this vulnerability without any signup by visiting the Vulert playground at https://vulert.com/scanner.
Conclusion
The lavanyasharma package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and utilize monitoring tools like Vulert to stay informed about potential vulnerabilities in their dependencies.
See every vulnerability recorded for lavanyasharma →
FAQ
The lavanyasharma package is an npm package that has been compromised to include malicious code aimed at manipulating the npm registry.
The malicious code can alter your package.json file, remove private flags, and publish unwanted packages, which can lead to reputation damage and security risks.
Yes, you can remove the lavanyasharma package from your project and use tools like Vulert to monitor for vulnerabilities in your dependencies.
You should uninstall the package immediately and check your project for any unintended changes or dependencies that may have been affected.
Yes, you can report vulnerabilities to the npm security team or through platforms like GitHub where the package is hosted.