Malicious Code Injection in nokire-loklok77 Package - npm Vulnerability
Summary
MAL-2025-162934: Malicious code in nokire-loklok77 (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 nokire-loklok77 package is part of a series of 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. This behavior not only clutters the npm registry but also poses security risks to developers using these packages.
Vulnerability Detail
The vulnerability in the nokire-loklok77 package stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random Indonesian-themed package names and continuously republishes variants, leading to pollution of the npm registry. This behavior can compromise the integrity of applications relying on these packages, potentially introducing security risks and instability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-loklok77
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-loklok77 package and any other packages associated with the tea.xyz token reward campaign. Review your package-lock.json file to identify and remove any affected packages.
Conclusion
The nokire-loklok77 package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain application security.
See every vulnerability recorded for nokire-loklok77 →
FAQ
The nokire-loklok77 package is an npm package that is part of a malicious campaign to inflate developer reputation scores by generating and publishing derivative packages.
This vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and stability.
You should remove the nokire-loklok77 package from your project and check for any other affected packages in your dependencies.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities in your software using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.