Malicious Code Injection in nokire-loklok95: A Threat to npm Packages
Summary
MAL-2025-162954: Malicious code in nokire-loklok95 (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-loklok95' is part of the npm ecosystem, which is widely used for JavaScript package management. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores, posing significant risks to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'nokire-loklok95' originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the security of applications that depend on these packages. The malicious scripts (auto.js, autopublish.js, etc.) are designed to automate this process, making it difficult for developers to track and mitigate the impact.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-loklok95
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 'nokire-loklok95' and any packages that may depend on it. Instead, look for alternative packages that provide similar functionality without the associated risks. Always validate the integrity of packages before installation.
Conclusion
The 'nokire-loklok95' package poses a significant threat due to its malicious behavior, which can compromise the security of applications relying on it. It is essential for developers to stay vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities in real-time.
See every vulnerability recorded for nokire-loklok95 →
FAQ
'nokire-loklok95' is an npm package that has been identified as malicious, part of a campaign to manipulate the npm registry.
The vulnerability can lead to the installation of compromised packages, which may introduce security risks and instability in your application.
You should uninstall 'nokire-loklok95' immediately and review your project's dependencies for any other potentially malicious packages.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.