Malicious Code Injection in compact_gibbon_z3n: A Threat to npm Packages

compact_gibbon_z3n Updated 24 Nov 2025

Summary

11/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-100730: Malicious code in compact_gibbon_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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package 'compact_gibbon_z3n' is part of a series of npm packages that emerged during 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 itself, thereby polluting the npm registry.

Vulnerability Detail

The vulnerability originates from the package's malicious code, which includes scripts that alter the package.json file by removing private flags and changing version numbers. This behavior allows the package to generate random names and continuously republish variants, leading to a polluted npm registry. The ramifications include potential security risks for developers who unknowingly use these packages, as they may inadvertently compromise their applications by integrating malicious code.

How To Fix

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

npm uninstall compact_gibbon_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, developers should avoid using the 'compact_gibbon_z3n' package and monitor their dependencies for any similar malicious packages. Regularly auditing your npm packages can help identify and mitigate risks associated with such vulnerabilities.

Conclusion

The 'compact_gibbon_z3n' package poses a significant threat due to its malicious code that alters package files and repopulates the npm registry with harmful variants. It is essential for developers to remove this package and monitor their dependencies closely to maintain application security.

See every vulnerability recorded for compact_gibbon_z3n →

Share this vulnerability

FAQ

It is an npm package that is part of a malicious campaign to inflate developer reputation scores by generating and publishing derivative packages.

If your application uses this package, it may inadvertently include malicious code that can compromise security and functionality.

You should uninstall the package immediately and check your package-lock.json for any references to it.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json. You can check your application for vulnerabilities using the Vulert playground without any signup.

Yes, tools like Vulert can help identify vulnerabilities in your dependencies and provide alerts for any issues found.

How To Fix

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

npm uninstall compact_gibbon_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