Malicious Code Injection in layla-poke7: A Threat to npm Users
Summary
MAL-2025-158057: Malicious code in layla-poke7 (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-poke7' is part of the npm ecosystem, which is widely used for JavaScript package management. It is often utilized by developers to manage dependencies in their applications. However, this package has been identified as malicious, containing scripts that can compromise the integrity of the npm registry and inflate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability in 'layla-poke7' originates from its association with the tea.xyz token reward campaign, which has led to the proliferation of malicious packages on npm. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, thereby continuously republishing variants to pollute the npm registry. This can lead to significant security risks, including the potential for dependency confusion and the introduction of untrusted code into applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall layla-poke7
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 prevent the installation of 'layla-poke7' by adding it to your project's .npmrc file with the following line: 'package-lock=false'. This will help avoid any unintended installations of this malicious package.
Conclusion
The 'layla-poke7' package presents a significant security threat to npm users due to its malicious code designed to manipulate the npm registry. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain the integrity of your applications.
See every vulnerability recorded for layla-poke7 →
FAQ
'layla-poke7' is an npm package that has been identified as malicious, designed to manipulate the npm registry and inflate developer reputation scores.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By checking your package-lock.json file, you can identify if your application is affected by this vulnerability.
Using 'layla-poke7' poses risks such as dependency confusion, introduction of untrusted code, and potential security breaches in your application.
You can remove 'layla-poke7' by running the command 'npm uninstall layla-poke7' in your project directory.
Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.