Malicious Code Injection in gociay-uga-agd Package: A Threat to npm Ecosystem
Summary
MAL-2025-182124: Malicious code in gociay-uga-agd (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 gociay-uga-agd package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to various malicious activities aimed at inflating developer reputation scores. The package's functionality is compromised by the presence of malicious scripts that manipulate its metadata and publish derivatives to the npm registry.
Vulnerability Detail
The vulnerability in the gociay-uga-agd package stems from its association with malicious code designed to modify package.json files. This code removes private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. The origin of this vulnerability is traced back to the tea.xyz token reward campaign, which employs these tactics to exploit the npm ecosystem for fraudulent gains. The ramifications include potential security risks for developers and users relying on the integrity of npm packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall gociay-uga-agd
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 gociay-uga-agd package and replace it with a trusted alternative. Always verify the integrity of packages before including them in your project.
Conclusion
The gociay-uga-agd package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package metadata. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can aid in maintaining the security of your software.
See every vulnerability recorded for gociay-uga-agd →
FAQ
The gociay-uga-agd package is a JavaScript package in the npm ecosystem that has been identified as containing malicious code.
This vulnerability can compromise the integrity of your project by introducing malicious code that alters package metadata and publishes unauthorized derivatives.
If you have installed the gociay-uga-agd package, you should uninstall it immediately using the command npm uninstall gociay-uga-agd.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities in your software.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.