Malicious Code Injection in nokire-lokcek40: A Threat to npm Users
Summary
MAL-2025-162795: Malicious code in nokire-lokcek40 (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 nokire-lokcek40 is part of a series of malicious npm packages associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in nokire-lokcek40 originates from its design to include autopublish scripts that manipulate the package.json file. This manipulation removes private flags, alters version numbers, and generates random package names, which can lead to significant security risks such as unauthorized access to sensitive data and the proliferation of malicious packages in the npm ecosystem. The continuous republishing of these variants can degrade the integrity of the npm registry, making it difficult for developers to trust the packages they use.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-lokcek40
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 avoid using the nokire-lokcek40 package and any other packages that may be part of the tea.xyz token reward campaign. Monitor your package-lock.json file for any unauthorized changes and consider using tools like Vulert to keep track of vulnerabilities.
Conclusion
The nokire-lokcek40 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 uninstall this package and monitor your dependencies to maintain the security of your projects.
See every vulnerability recorded for nokire-lokcek40 →
FAQ
Nokire-lokcek40 is an npm package that has been identified as malicious, designed to manipulate package metadata and republish variants to inflate developer reputation scores.
This vulnerability can lead to unauthorized modifications in your project, potentially exposing sensitive data and compromising the integrity of your dependencies.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed nokire-lokcek40, you should uninstall it immediately using the command npm uninstall nokire-lokcek40 and review your other dependencies for any potential issues.
Yes, regularly monitor your dependencies using tools like Vulert, which alerts you in real-time for open-source vulnerabilities, and keep your packages updated.