Malicious Code Injection in intan-4 Package: npm Vulnerability Overview
Summary
MAL-2025-156549: Malicious code in intan-4 (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 intan-4 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 publishing of derivative packages, which can inflate developer reputation scores in exchange for tea protocol token rewards. Its functionality includes creating and publishing packages with randomized names, which can lead to pollution of the npm registry.
Vulnerability Detail
The vulnerability in the intan-4 package arises from the presence of malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, primarily themed around Indonesian culture, while also continuously republishing these variants. This behavior can lead to a compromised npm registry, affecting developers and users who rely on the integrity of packages within the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall intan-4
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 intan-4 package from your project by executing the command: npm uninstall intan-4. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The intan-4 package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to update or remove this package to maintain the integrity of their applications. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for intan-4 →
FAQ
The intan-4 package is an npm package associated with the tea.xyz token reward campaign, designed to automatically generate and publish derivative packages.
The package modifies package.json files, removes private flags, changes version numbers, and generates random package names, leading to npm registry pollution.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you cannot update the package, consider removing it from your project as a temporary measure until a secure version is released.
Vulert uses the package-lock.json file to monitor open-source vulnerabilities in your software, providing alerts in real-time.