Malicious Code Injection in layla-poke97: A Threat to npm Users
Summary
MAL-2025-158087: Malicious code in layla-poke97 (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-poke97' 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 the npm registry by flooding it with derivative packages. These packages are designed to inflate developer reputation scores through automated scripts that generate and publish numerous variants, compromising the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'layla-poke97' originates from its association with a token reward campaign that utilizes autopublish scripts. These scripts modify the package.json file to remove private flags, alter version numbers, and create random package names, leading to the continuous republishing of these variants. This not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall layla-poke97
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, you can monitor your project's dependencies using tools like Vulert. Vulert allows you to check for vulnerabilities in your package-lock.json file without requiring code access or installation. You can use the Vulert playground at https://vulert.com/scanner to assess if your application is affected by this vulnerability.
Conclusion
The 'layla-poke97' package poses a significant risk to npm users due to its malicious code designed to exploit the npm registry. It is essential to remove this package from your projects and utilize monitoring tools like Vulert to safeguard against future vulnerabilities.
See every vulnerability recorded for layla-poke97 →
FAQ
The 'layla-poke97' package is an npm package that has been identified as part of a malicious campaign aimed at exploiting the npm registry.
If your application uses the 'layla-poke97' package, it may be at risk of security breaches due to the malicious code that modifies package.json and republish variants.
You should uninstall the 'layla-poke97' package immediately using 'npm uninstall layla-poke97' and review your dependencies for any other potentially malicious packages.
Regularly update your dependencies, use trusted packages, and monitor your project with tools like Vulert to stay informed about vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities by analyzing your package-lock.json file.