Malicious Code Injection in compact_rook-gooddev Package
Summary
MAL-2025-100735: Malicious code in compact_rook-gooddev (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 compact_rook-gooddev package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the distribution of software packages. However, this package has been compromised, leading to significant security concerns. The malicious code embedded within this package is intended to manipulate package metadata and flood the npm registry with derivative packages, potentially harming developers' reputations and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability originates from a malicious payload that alters the package.json file of the compact_rook-gooddev package. This payload removes private flags, modifies version numbers, and generates random package names, leading to the automatic republishing of these variants. The implications of this vulnerability include the pollution of the npm registry, which can mislead developers and users, inflate reputation scores fraudulently, and compromise the security of applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall compact_rook-gooddev
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 remove the compact_rook-gooddev package from your project by executing the following command: npm uninstall compact_rook-gooddev. This will prevent any malicious code from executing while you assess the situation.
Conclusion
The compact_rook-gooddev package has been compromised with malicious code that alters package metadata and floods the npm registry. It is crucial to update or remove this package to safeguard your projects. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for compact_rook-gooddev →
FAQ
The compact_rook-gooddev package is an npm package associated with the tea.xyz token reward campaign, designed to distribute software packages.
The malicious code modifies your package.json file, removes private flags, and floods the npm registry with derivative packages, potentially harming your project's integrity.
You should update the package to a patched version if available or uninstall it to prevent any malicious activity.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json. You can also check your application for vulnerabilities using the Vulert playground without any signup.
You can refer to the vulnerability details provided by Amazon Inspector or check the GitHub repository for more insights.