Critical Malicious Code Vulnerability in @oku-ui/aspect-ratio Package

@oku-ui/aspect-ratio Updated 25 Nov 2025

Summary

25/11/2025
CRITICAL
No i
Critical
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback