Malicious Code Injection in spatial_goldfish_z3n Package
Summary
MAL-2025-96698: Malicious code in spatial_goldfish_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 spatial_goldfish_z3n package is part of the npm ecosystem, often used in JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been linked to various malicious activities. This package is designed to generate and publish derivative packages, potentially compromising the integrity of the npm registry and affecting developers' reputations.
Vulnerability Detail
The vulnerability in the spatial_goldfish_z3n package stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to a loss of trust in the npm ecosystem and may expose developers to security risks if they inadvertently use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall spatial_goldfish_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, you can avoid using the spatial_goldfish_z3n package altogether. If it is already included in your project, remove it by executing: npm uninstall spatial_goldfish_z3n. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which analyzes your package-lock.json file for real-time alerts on open-source vulnerabilities.
Conclusion
The spatial_goldfish_z3n package poses a significant security risk due to its malicious code that alters package configurations and floods the npm registry with compromised variants. It is essential to take immediate action by removing the package and monitoring your project for vulnerabilities.
See every vulnerability recorded for spatial_goldfish_z3n →
FAQ
The spatial_goldfish_z3n package is an npm package that has been linked to malicious activities, specifically in the context of the tea.xyz token reward campaign.
This vulnerability can compromise the integrity of your application by introducing malicious code that modifies package configurations and publishes harmful variants to the npm registry.
If you have installed the spatial_goldfish_z3n package, it is crucial to remove it from your project and monitor for any other affected packages.
You can use Vulert to monitor your project for vulnerabilities by analyzing your package-lock.json file. It provides real-time alerts 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 needing to sign up.