Malicious Code Injection in adiwijaya Package: npm Vulnerability Overview
Summary
MAL-2025-170666: Malicious code in adiwijaya (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 adiwijaya package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages. It aims to inflate developer reputation scores for token rewards, but it has been compromised to include malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the adiwijaya package originates from its involvement in a malicious campaign that floods the npm registry. The package contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising other projects that depend on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall adiwijaya
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 remove the adiwijaya package from your project by executing the command: 'npm uninstall adiwijaya'. This will prevent any malicious scripts from executing until a secure version is available.
Conclusion
The adiwijaya package has been identified as containing malicious code that poses a significant risk to projects using it. It is essential to take immediate action by updating or removing the package to safeguard your application and maintain the integrity of the npm registry.
See every vulnerability recorded for adiwijaya →
FAQ
The adiwijaya package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the modification of your project's package.json file, potentially exposing your project to further risks and pollution of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
If you cannot update the package, consider removing it from your project as a temporary measure until a secure version is released.
More information can be found in the vulnerability report on the official npm registry or by consulting security advisories related to the adiwijaya package.