Malicious Code Injection in miracle-dok-uaki: A Threat to npm Users
Summary
MAL-2025-160507: Malicious code in miracle-dok-uaki (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-dok-uaki' is part of a broader campaign targeting npm users, specifically associated with the tea.xyz token reward initiative. This package is designed to manipulate npm's publishing system, generating numerous derivative packages that can mislead developers and inflate reputation scores. Its functionality is compromised due to the presence of malicious scripts that alter package metadata.
Vulnerability Detail
The vulnerability in 'miracle-dok-uaki' originates from its inclusion in a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that modify the package.json file, removing private flags and changing version numbers. The scripts also generate random package names, which can lead to pollution of the npm registry and potentially compromise the integrity of other packages. The ramifications include loss of control over package management and potential security risks for developers using these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall miracle-dok-uaki
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, avoid using the 'miracle-dok-uaki' package and monitor your project for any dependencies that may inadvertently include it. You can also use tools like Vulert to check your package-lock.json for vulnerabilities without needing to install anything.
Conclusion
The 'miracle-dok-uaki' package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain the integrity of their software.
See every vulnerability recorded for miracle-dok-uaki →
FAQ
'miracle-dok-uaki' is an npm package that is part of a malicious campaign aimed at manipulating the npm registry.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your project's dependencies.
You should uninstall the package immediately using 'npm uninstall miracle-dok-uaki' and check for any affected dependencies.
Yes, you can use Vulert to monitor your package-lock.json for vulnerabilities in real-time without any installation.
Regularly audit your dependencies and use tools like Vulert to stay informed about potential vulnerabilities in your packages.