Malicious Code Injection in ogpkyi-devapptea: A Threat to npm Packages
Summary
MAL-2025-106610: Malicious code in ogpkyi-devapptea (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 ogpkyi-devapptea is part of the tea.xyz token reward campaign, which has been associated with a surge of malicious npm packages. These packages are designed to inflate developer reputation scores through the automatic generation and publication of derivative packages. The functionality of ogpkyi-devapptea is compromised due to the presence of malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in ogpkyi-devapptea originates from its association with a campaign that floods the npm registry with malicious packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to pollution of the npm registry. This can result in developers unknowingly using compromised packages, which may lead to security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ogpkyi-devapptea
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 ogpkyi-devapptea package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using npm audit to identify and address vulnerabilities in your project.
Conclusion
The ogpkyi-devapptea package poses a significant risk due to its malicious code designed to manipulate package metadata and pollute the npm registry. It is crucial for developers to be vigilant and remove any affected packages from their projects to maintain the integrity and security of their applications.
See every vulnerability recorded for ogpkyi-devapptea →
FAQ
ogpkyi-devapptea is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic publication of derivative packages.
The malicious code can modify your package.json file, remove private flags, and publish random package names, potentially leading to security vulnerabilities and loss of control over your project's dependencies.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without any signup.
If you have installed ogpkyi-devapptea, it is advisable to remove it from your project immediately and check for any alternative packages that do not pose security risks.
More information can be found in the vulnerability report on the GitHub repository for malicious packages, which details the nature of the threat and its implications.