Malicious Code Injection in gay_cougar_dumbs: A Threat to npm Ecosystem
Summary
MAL-2025-103064: Malicious code in gay_cougar_dumbs (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 'gay_cougar_dumbs' is part of the npm ecosystem and appears to be associated with the tea.xyz token reward campaign. This campaign has been known to flood npm with numerous packages that contain scripts designed to manipulate the npm registry. The primary function of such packages is to inflate developer reputation scores through the automatic generation and publication of derivative packages with randomized names.
Vulnerability Detail
The vulnerability in 'gay_cougar_dumbs' stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, ultimately polluting the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's package management system for malicious purposes, potentially compromising the integrity of the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall gay_cougar_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 prevent the installation of this malicious package by adding it to your project's .npmrc file with the following line: 'package-lock=false'. However, the best practice is to remove the package entirely.
Conclusion
The 'gay_cougar_dumbs' package poses a significant threat to the npm ecosystem due to its malicious behavior aimed at manipulating the npm registry. It is crucial for developers to be vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. Removing the package and ensuring the integrity of your project is essential for maintaining security.
See every vulnerability recorded for gay_cougar_dumbs →
FAQ
The vulnerability can lead to the pollution of the npm registry, affecting the integrity of other packages and potentially compromising the security of applications that depend on them.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.
If you have installed 'gay_cougar_dumbs', you should uninstall it immediately using 'npm uninstall gay_cougar_dumbs' and check your project for any other potentially malicious packages.
There are no patches available for 'gay_cougar_dumbs' as it is recommended to remove the package entirely instead of attempting to patch it.
Regularly audit your dependencies, use tools like Vulert for monitoring, and avoid installing packages from untrusted sources.