Malicious Code Injection in miracle-doki-unisakaoiw Package
Summary
MAL-2025-160532: Malicious code in miracle-doki-unisakaoiw (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 miracle-doki-unisakaoiw package is part of the npm ecosystem, often associated with token reward campaigns. It is designed to facilitate various functionalities within applications but has been compromised. This package is known for its involvement in generating and publishing derivative packages with randomized names, which can inflate developer reputation scores for token rewards. Its vulnerability stems from malicious scripts that modify critical files, leading to potential security risks.
Vulnerability Detail
The vulnerability in the miracle-doki-unisakaoiw package originates from its association with the tea.xyz token reward campaign. Malicious code embedded in the package modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of applications that depend on this package. The ramifications include unauthorized access to sensitive data and the introduction of further vulnerabilities into dependent projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall miracle-doki-unisakaoiw
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 miracle-doki-unisakaoiw package altogether and look for alternative packages that provide similar functionalities without the associated risks. Additionally, you can monitor your package-lock.json file for any unauthorized changes using tools like Vulert, which can alert you to vulnerabilities in real-time.
Conclusion
The miracle-doki-unisakaoiw package contains malicious code that poses significant risks to applications relying on it. It is crucial to uninstall this package and monitor your project for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for miracle-doki-unisakaoiw →
FAQ
The miracle-doki-unisakaoiw package is an npm package associated with token reward campaigns, designed to facilitate various functionalities within applications.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially compromising your application's security and integrity.
You should uninstall the miracle-doki-unisakaoiw package immediately and monitor your project for any unauthorized changes.
Yes, tools like Vulert can monitor your package-lock.json file for vulnerabilities and alert you in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.