Malicious Code Injection in soviet_bear_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-108954: Malicious code in soviet_bear_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 package 'soviet_bear_z3n' is part of a series of malicious 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. The malicious nature of this package lies in its ability to modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which alters the package.json file by removing private flags and changing version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also poses a risk to developers who may unknowingly use these tainted packages, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall soviet_bear_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 measure, avoid using the 'soviet_bear_z3n' package and monitor your project's dependencies for any signs of malicious activity. You can also utilize tools like Vulert to monitor your package-lock.json for vulnerabilities without needing to install any software. Visit the Vulert playground at https://vulert.com/scanner to check if your application is affected by this vulnerability.
Conclusion
The 'soviet_bear_z3n' package represents a significant threat to the npm ecosystem due to its malicious behavior of modifying and republishing packages. It is essential for developers to be vigilant and take immediate action to remove such packages from their projects. Utilizing tools like Vulert can aid in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for soviet_bear_z3n →
FAQ
The 'soviet_bear_z3n' package is a malicious npm package that is part of a campaign to inflate developer reputation scores through automated publishing of derivative packages.
This vulnerability can compromise the integrity of your project by introducing malicious code that modifies your package.json and republishing harmful variants, potentially leading to further exploitation.
You should immediately uninstall the 'soviet_bear_z3n' package using 'npm uninstall soviet_bear_z3n' and review your project dependencies for any other malicious packages.
Regularly audit your dependencies, use tools like Vulert to monitor for vulnerabilities, and stay updated on security advisories related to the packages you use.
Yes, you can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities by simply uploading your package-lock.json file.