Malicious Code Injection in jcxgnj-devapptea Package
Summary
MAL-2025-104529: Malicious code in jcxgnj-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 jcxgnj-devapptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous packages. This package is designed to facilitate token rewards for developers by generating and publishing derivative packages. However, it has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the jcxgnj-devapptea package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially compromising the integrity of other packages. This behavior can inflate developer reputation scores fraudulently, posing risks to the broader npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall jcxgnj-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 prevent the installation of this package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include jcxgnj-devapptea in its dependencies. You can also use the following command to uninstall it if already installed: npm uninstall jcxgnj-devapptea.
Conclusion
The jcxgnj-devapptea package has been identified as containing malicious code that can compromise the integrity of projects using it. It is crucial to remove this package and monitor your dependencies for any vulnerabilities to maintain a secure development environment.
See every vulnerability recorded for jcxgnj-devapptea →
FAQ
jcxgnj-devapptea is a package associated with the tea.xyz token reward campaign, which aims to incentivize developers through token rewards.
The vulnerability can lead to the modification of your package.json file, potentially compromising your project's integrity and security.
You should uninstall the jcxgnj-devapptea package immediately using the command: npm uninstall jcxgnj-devapptea.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground.
Regularly update your dependencies, monitor your project with tools like Vulert, and review the npm registry for any known vulnerabilities.