Malicious Code Injection in changing_moth_z3n Package - npm Vulnerability

changing_moth_z3n Updated 27 Nov 2025

Summary

11/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-93500: Malicious code in changing_moth_z3n (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The changing_moth_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. These packages are designed to inflate developer reputation scores through automated scripts that publish numerous variants with altered names and properties.

Vulnerability Detail

The vulnerability in the changing_moth_z3n package originates from its association with the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. This behavior leads to the continuous republishing of these variants, which pollutes the npm registry and can compromise the integrity of the ecosystem. Developers using this package may unknowingly contribute to the proliferation of malicious content.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall changing_moth_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 workaround, you can temporarily avoid using the changing_moth_z3n package by removing it from your dependencies. You can do this by running the following command in your project directory: npm uninstall changing_moth_z3n.

Conclusion

The changing_moth_z3n package poses a significant risk due to its malicious behavior aimed at manipulating the npm registry. It is essential for developers to be vigilant about the packages they use and to take immediate action if they find themselves using compromised packages. Regular monitoring and updates can help maintain the security of your projects.

See every vulnerability recorded for changing_moth_z3n →

Share this vulnerability

FAQ

The changing_moth_z3n package is an npm package that has been identified as part of a malicious campaign to flood the npm registry with derivative packages.

This vulnerability can compromise the integrity of your project by introducing malicious code that alters package configurations and publishes unwanted variants.

If you have installed the changing_moth_z3n package, it is crucial to uninstall it immediately and monitor your project for any unusual behavior.

You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities. You can check your application using the Vulert playground without any signup.

To prevent future vulnerabilities, regularly audit your dependencies, use trusted packages, and consider employing automated tools that monitor for known vulnerabilities.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall changing_moth_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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback