Critical Malicious Code Vulnerability in @oku-ui/switch Package
Summary
MAL-2025-191275: Malicious code in @oku-ui/switch (npm). Affects @oku-ui/switch 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/switch package is a component library for building user interface elements in web applications. It provides developers with a set of customizable switches that enhance user experience. However, this package has been compromised, exposing users to significant security risks.
Vulnerability Detail
The vulnerability originates from the Sha1-Hulud: The Second Coming NPM worm, which has infected the @oku-ui/switch package version 0.6.2. This malicious code is designed to steal tokens and credentials from users and publish them to GitHub. Additionally, it can propagate itself to other NPM packages owned by the user and establish persistence through a GitHub action. The worm also poses a risk of destroying the user's home directory, making it a severe threat to both personal and organizational data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @oku-ui/switch
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 measure, users can remove the compromised package from their project by executing: npm uninstall @oku-ui/switch. This will prevent the malicious code from executing until a secure version is available.
Conclusion
The @oku-ui/switch package has been compromised by a malicious worm, posing serious security risks to users. It is crucial to update to a patched version and monitor your applications for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for @oku-ui/switch →
FAQ
The malicious code can steal sensitive information such as tokens and credentials, potentially leading to unauthorized access to user accounts and data.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you suspect that you have been compromised, immediately change your credentials and tokens, and consider reviewing your GitHub repositories for any unauthorized changes.
Regularly update your dependencies, use tools like Vulert for monitoring vulnerabilities, and conduct security audits on your codebase.
Detailed information can be found in the official GitHub repository and security advisories related to the @oku-ui/switch package.