Malicious Code Exploit in layla-poke40 Package: A Threat to npm Users
Summary
MAL-2025-158025: Malicious code in layla-poke40 (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 layla-poke40 package 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 npm's publishing capabilities, thereby endangering developers and their projects.
Vulnerability Detail
The vulnerability in the layla-poke40 package stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to automatically modify the package.json file, removing private flags and altering version numbers. The malicious payload generates random package names, often themed around Indonesian culture, and continuously republishes these variants, polluting the npm registry and potentially compromising developer reputation scores.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall layla-poke40
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 the layla-poke40 package and any other packages that are part of the malicious campaign. Monitor your package-lock.json file for any unauthorized changes and consider using tools like Vulert to track vulnerabilities in your dependencies.
Conclusion
The layla-poke40 package poses a significant risk to npm users due to its malicious nature. It is essential to remove this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help you stay informed about potential threats in your projects.
See every vulnerability recorded for layla-poke40 →
FAQ
The layla-poke40 package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
This vulnerability can lead to unauthorized changes in your project's dependencies, potentially compromising security and developer reputation.
You should uninstall the layla-poke40 package immediately and review your other dependencies for any potential vulnerabilities.
You can use Vulert, which monitors your package-lock.json file for vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
There are no patches available for the layla-poke40 package as it is a malicious package. The best course of action is to remove it from your project.