Malicious Code Injection in layla-poke77: A Threat to npm Ecosystem
Summary
MAL-2025-158065: Malicious code in layla-poke77 (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 'layla-poke77' is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that aims to exploit the npm registry by generating and publishing derivative packages with harmful scripts.
Vulnerability Detail
The vulnerability in 'layla-poke77' originates from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and create random package names. This behavior not only inflates developer reputation scores for token rewards but also pollutes the npm registry, potentially leading to security risks for developers who unknowingly use these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall layla-poke77
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 'layla-poke77' and any other packages associated with the tea.xyz token reward campaign. Additionally, you can use the following command to uninstall the package: 'npm uninstall layla-poke77'.
Conclusion
The 'layla-poke77' package poses a significant threat due to its malicious code that alters package.json and floods the npm registry. It is crucial for developers to take immediate action by updating or uninstalling the package and utilizing tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for layla-poke77 →
FAQ
The main issue is that it contains malicious code that modifies package.json and floods the npm registry with harmful derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
If you have installed layla-poke77, you should uninstall it immediately using 'npm uninstall layla-poke77' and check for any other affected packages.
Yes, using this package can lead to security vulnerabilities in your application, as it may introduce malicious code that compromises your software.
To prevent similar vulnerabilities, regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about security advisories related to the packages you use.