Malicious Code Injection in intan-2 Package: npm Vulnerability Overview
Summary
MAL-2025-156528: Malicious code in intan-2 (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-2 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, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious scripts that compromise its integrity and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the intan-2 package originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting other developers and users relying on the integrity of npm packages. The malicious scripts are typically named auto.js, autopublish.js, autopublish2.js, and autopublish3.js.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall intan-2
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 intan-2 package and monitor your project for any dependencies that may rely on it. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The intan-2 package poses a significant risk due to its malicious code that compromises the integrity of the npm registry. It is crucial for developers to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can enhance your security posture by providing real-time alerts for open-source vulnerabilities.
See every vulnerability recorded for intan-2 →
FAQ
The intan-2 package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The intan-2 package modifies package.json files, removes private flags, changes version numbers, and generates random package names, leading to pollution of the npm registry.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed intan-2, it is advisable to remove it from your project and monitor for any updates or patches that may be released.
Vulert uses your package-lock.json to monitor and alert you in real-time for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.