Malicious Code Injection in layla-poke88: A Threat to npm Users
Summary
MAL-2025-158077: Malicious code in layla-poke88 (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-poke88' is part of the npm ecosystem, which is widely used for JavaScript package management. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. This package, like others in the campaign, is designed to manipulate npm's publishing system, potentially harming developers and users alike.
Vulnerability Detail
The vulnerability in 'layla-poke88' originates from its design to include malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names to inflate developer reputation scores. The continuous republishing of these variants can lead to pollution of the npm registry, making it difficult for users to find legitimate packages and potentially introducing security risks into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall layla-poke88
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 remove the package from your project by executing the following command in your terminal: npm uninstall layla-poke88. This will help mitigate the risk associated with this malicious package.
Conclusion
The 'layla-poke88' package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with harmful variants. It is essential for developers to remove this package and monitor their projects for vulnerabilities to maintain security.
See every vulnerability recorded for layla-poke88 →
FAQ
'layla-poke88' is an npm package associated with a token reward campaign that has been identified as containing malicious code.
The vulnerability can lead to the modification of your package.json file, potentially introducing security risks and polluting the npm registry.
You should uninstall the package immediately using 'npm uninstall layla-poke88' to mitigate any risks.
Currently, there is no patched version available. It is recommended to remove the package until a secure version is released.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner without any signup.