Malicious Code Injection in inner_rook_z3n Package
Summary
MAL-2025-95032: Malicious code in inner_rook_z3n (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 inner_rook_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package was identified as part of a malicious campaign associated with the tea.xyz token reward system. Its primary function is to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores. However, this functionality has been exploited to introduce malicious scripts that compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the inner_rook_z3n package stems from its inclusion in a malicious campaign that utilizes autopublish scripts to create and publish numerous derivative packages with altered metadata. This includes removing private flags from package.json, changing version numbers, and generating random package names. The continuous republishing of these variants leads to pollution of the npm registry, potentially affecting developers who rely on the integrity of the packages they use.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall inner_rook_z3n
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, avoid using the inner_rook_z3n package and monitor your project's dependencies for any signs of malicious activity. Regularly check your package-lock.json file for any unexpected changes.
Conclusion
The inner_rook_z3n package has been identified as a vector for malicious code injection, primarily due to its association with a campaign that manipulates npm's publishing mechanisms. It is crucial for developers to remove this package and monitor their dependencies to maintain the security of their projects.
See every vulnerability recorded for inner_rook_z3n →
FAQ
The inner_rook_z3n package is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the automatic publication of derivative packages.
This vulnerability can lead to the pollution of the npm registry, potentially introducing malicious code into your project and compromising its security.
If you have installed the inner_rook_z3n package, it is recommended to uninstall it immediately using the command: npm uninstall inner_rook_z3n.
Yes, you can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software by analyzing your package-lock.json file. You can check for vulnerabilities without any signup at the Vulert playground.
To prevent similar vulnerabilities, regularly audit your dependencies, keep your packages updated, and utilize tools like Vulert to monitor for vulnerabilities in real-time.