Malicious Code Injection in spare_cobra_dumbs: A Threat to npm Ecosystem

spare_cobra_dumbs Updated 18 Nov 2025

Summary

11/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-108958: Malicious code in spare_cobra_dumbs (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 package 'spare_cobra_dumbs' is part of a series of malicious npm packages associated with the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by automatically generating and publishing derivative packages with randomized names. This behavior is intended to inflate developer reputation scores for token rewards, making the package a significant threat to the integrity of the npm ecosystem.

Vulnerability Detail

The vulnerability in 'spare_cobra_dumbs' originates from its malicious design, which includes scripts that modify the package.json file to remove private flags and change version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes variants to pollute the npm registry. This can lead to a compromised development environment, where developers may unknowingly use these malicious packages, exposing their applications to potential security risks.

How To Fix

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

npm uninstall spare_cobra_dumbs

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 'spare_cobra_dumbs' package and any derivatives it may have created. Regularly audit your dependencies using tools like npm audit to identify and remove any malicious packages.

Conclusion

The 'spare_cobra_dumbs' package poses a significant threat to the npm ecosystem due to its malicious behavior of altering package metadata and flooding the registry with derivative packages. It is essential for developers to remain vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities.

See every vulnerability recorded for spare_cobra_dumbs →

Share this vulnerability

FAQ

'spare_cobra_dumbs' is a malicious npm package that is part of a campaign to inflate developer reputation scores through automated publishing of derivative packages.

Using 'spare_cobra_dumbs' can compromise your application by introducing malicious code that alters your package.json and potentially exposes your application to security risks.

You can use Vulert, which monitors open-source vulnerabilities in real-time by analyzing your package-lock.json. Visit Vulert Scanner to check your application without any signup.

Immediately remove the package from your project and audit your dependencies to ensure no other malicious packages are present.

Yes, tools like npm audit and Vulert can help you identify and manage vulnerabilities in your npm packages effectively.

How To Fix

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

npm uninstall spare_cobra_dumbs

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