Critical Malicious Code Vulnerability in @oku-ui/aspect-ratio Package
Summary
MAL-2025-191250: Malicious code in @oku-ui/aspect-ratio (npm). Affects @oku-ui/aspect-ratio 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/aspect-ratio package is a utility for managing aspect ratios in web applications, allowing developers to create responsive designs easily. It is widely used in the npm ecosystem for its simplicity and effectiveness. However, this package has recently been compromised, exposing users to significant security risks.
Vulnerability Detail
The vulnerability stems from a malicious code injection by the Sha1-Hulud: The Second Coming NPM worm. This worm is designed to steal 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, it poses a risk of destroying the user's home directory, making it a severe threat to both security and data integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @oku-ui/aspect-ratio
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 should avoid using the compromised version (0.6.2) of the @oku-ui/aspect-ratio package until a secure version is confirmed. Consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The @oku-ui/aspect-ratio package has been compromised by a malicious worm that poses serious security risks. Users must take immediate action to update the package and secure their environments. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for @oku-ui/aspect-ratio →
FAQ
The malicious code is designed to steal sensitive 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 your software. Visit Vulert Scanner to check if your application is affected without any signup.
Immediately update the package to the latest version using the command: npm update @oku-ui/aspect-ratio. Review your system for any unauthorized access or changes.
Yes, the worm may destroy the user's home directory, which can lead to significant data loss if not addressed promptly.
Regularly update your packages, monitor for vulnerabilities using tools like Vulert, and review your code dependencies for any suspicious activity.