Malicious Code Injection in miracle-dokoi-ikaw: A Threat to npm Users
Summary
MAL-2025-160555: Malicious code in miracle-dokoi-ikaw (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 package 'miracle-dokoi-ikaw' is part of a broader ecosystem of npm packages that have been associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior poses significant risks to the integrity of the npm registry and the security of applications relying on these packages.
Vulnerability Detail
The vulnerability in 'miracle-dokoi-ikaw' 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 leads to the continuous republishing of variants, polluting the npm registry and potentially compromising applications that depend on this package. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall miracle-dokoi-ikaw
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, consider removing the 'miracle-dokoi-ikaw' package from your project until a secure version is released. You can do this by executing: npm uninstall miracle-dokoi-ikaw. Additionally, monitor your package-lock.json file for any dependencies that may be affected by this vulnerability.
Conclusion
The 'miracle-dokoi-ikaw' package poses a significant threat due to its malicious code that alters package metadata and repopulates the npm registry with potentially harmful variants. It is crucial for developers to take immediate action by updating or removing the package and monitoring their applications for vulnerabilities.
See every vulnerability recorded for miracle-dokoi-ikaw →
FAQ
'miracle-dokoi-ikaw' is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through automated publishing.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
If you have installed 'miracle-dokoi-ikaw', it is recommended to uninstall it immediately and monitor your project for any signs of compromise.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.