Malicious Code Injection in yuni-kacang77-apidev: npm Package Vulnerability
Summary
MAL-2025-92691: Malicious code in yuni-kacang77-apidev (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 yuni-kacang77-apidev package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary functionality of yuni-kacang77-apidev is to provide developers with tools and libraries for building applications. However, its involvement in the malicious campaign has rendered it vulnerable, leading to significant security risks for users.
Vulnerability Detail
The vulnerability in yuni-kacang77-apidev stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to inflate developer reputation scores in exchange for tea protocol token rewards. The malicious payload continuously republishes variants of the package, polluting the npm registry and potentially compromising the integrity of applications that depend on it. The origin of this vulnerability is linked to the broader trend of malicious packages targeting the npm ecosystem, specifically those associated with token reward schemes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yuni-kacang77-apidev
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 the yuni-kacang77-apidev package by using npm's package-lock.json file to lock your dependencies. This will help mitigate the risk of inadvertently installing malicious packages. Additionally, consider using tools like Vulert to monitor your dependencies for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The yuni-kacang77-apidev package presents a significant security risk due to its malicious code that alters package metadata and repackages itself. Users are advised to uninstall this package and monitor their dependencies for vulnerabilities using tools like Vulert. Staying informed and proactive is essential in maintaining the security of your applications.
See every vulnerability recorded for yuni-kacang77-apidev →
FAQ
yuni-kacang77-apidev is an npm package that is part of the tea.xyz token reward campaign, which has been associated with malicious activities.
The vulnerability can lead to the installation of malicious code that modifies your package.json file, potentially compromising your application's integrity.
You should uninstall the yuni-kacang77-apidev package immediately and check for alternative packages that do not have known vulnerabilities.
Yes, you can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.