Malicious Code Injection in layla-poke49: A Threat to npm Users
Summary
MAL-2025-158034: Malicious code in layla-poke49 (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-poke49' is part of a series of npm packages that have been identified as malicious. These packages are linked to a token reward campaign that aims to manipulate developer reputation scores by flooding the npm registry with derivative packages. The malicious nature of 'layla-poke49' lies in its ability to modify package metadata and republish variants, which can lead to significant security risks for users and developers relying on npm for package management.
Vulnerability Detail
The vulnerability in 'layla-poke49' originates from its design to execute autopublish scripts that alter the package.json file. This includes removing private flags, changing version numbers, and generating random package names to pollute the npm registry. The ramifications of this vulnerability include the potential for unauthorized access to sensitive data, the introduction of further malicious packages, and the degradation of the npm ecosystem's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall layla-poke49
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-poke49' and any other packages that are part of the same malicious campaign. Monitor your package-lock.json file for any unexpected changes and remove any suspicious packages immediately.
Conclusion
The 'layla-poke49' package poses a significant threat to npm users due to its malicious code designed to manipulate package metadata and republish variants. It is crucial to remove this package and monitor your dependencies to maintain the integrity of your projects.
See every vulnerability recorded for layla-poke49 →
FAQ
'layla-poke49' is an npm package identified as malicious, designed to manipulate the npm registry by generating and republishing derivative packages.
You can use Vulert, which monitors your package-lock.json for vulnerabilities. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you have installed 'layla-poke49', you should uninstall it immediately using the command 'npm uninstall layla-poke49'.
No, there are no patches available for 'layla-poke49' as it is a malicious package. The best course of action is to remove it from your project.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay informed about known vulnerabilities in the npm ecosystem.