Critical Malicious Code Vulnerability in @oku-ui/toggle Package
Summary
MAL-2025-191278: Malicious code in @oku-ui/toggle (npm). Affects @oku-ui/toggle versions 0.6.2. 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 @oku-ui/toggle package is a JavaScript library used in web development for creating toggle components. It is part of the Oku UI framework, which aims to provide accessible and customizable UI components. However, this package has been compromised, leading to severe security risks for users who rely on it.
Vulnerability Detail
The vulnerability originates from a malicious payload introduced by the Sha1-Hulud: The Second Coming NPM worm. This worm is designed to steal sensitive tokens and credentials from users, publishing them to GitHub. It can propagate itself to other NPM packages owned by the user and establish persistence through a GitHub action. Additionally, the worm has the potential to destroy the user's home directory, making it a critical threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @oku-ui/toggle
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, users can remove the @oku-ui/toggle package from their project by executing the command: npm uninstall @oku-ui/toggle. This will prevent the malicious code from executing while waiting for a secure version.
Conclusion
The @oku-ui/toggle package has been compromised by a malicious worm that poses significant security risks. Users are urged to update or remove the package to protect their applications. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for @oku-ui/toggle →
FAQ
The vulnerability involves malicious code that steals user credentials and can propagate to other packages.
You can use Vulert's playground at Vulert Scanner to check if your application is impacted without any signup.
If an immediate update is not possible, consider uninstalling the package to mitigate the risk.
Consequences include unauthorized access to sensitive information, potential data loss, and propagation of the malicious code to other packages.
Yes, Vulert can monitor your project for open-source vulnerabilities in real-time using just the package-lock.json file.