Critical Malicious Code Vulnerability in @pergel/module-ui Package

@pergel/module-ui Updated 25 Nov 2025

Summary

25/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-191287: Malicious code in @pergel/module-ui (npm). Affects @pergel/module-ui versions 0.0.9. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The @pergel/module-ui package is an npm library designed for user interface components in web applications. It is widely used for its modular design and ease of integration. However, it has recently been compromised, exposing users to significant security risks due to malicious code embedded within the package.

Vulnerability Detail

The vulnerability originates from a compromise by the Sha1-Hulud: The Second Coming NPM worm, which infiltrated the @pergel/module-ui package. This malicious payload is designed to steal user tokens and credentials, subsequently publishing them to GitHub. Additionally, the worm can propagate itself to other npm packages owned by the user and establish persistence through GitHub actions. There is also a risk of the worm destroying the user's home directory, leading to potential data loss.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall @pergel/module-ui

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, you can remove the @pergel/module-ui package from your project until a secure version is released. Use the following command to uninstall the package: npm uninstall @pergel/module-ui.

Conclusion

The @pergel/module-ui package has been compromised by a malicious worm that poses significant security risks to users. It is essential to take immediate action by updating or removing the package and monitoring for any unauthorized access to sensitive information. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.

See every vulnerability recorded for @pergel/module-ui →

Share this vulnerability

FAQ

The malicious code is designed to steal sensitive user information, including tokens and credentials, and can also propagate to other npm packages.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If you have installed the compromised version of @pergel/module-ui, it is recommended to uninstall it immediately and monitor your accounts for any suspicious activity.

To prevent future vulnerabilities, regularly update your dependencies, use tools like Vulert to monitor for vulnerabilities, and review package sources before installation.

Failing to address this vulnerability could lead to unauthorized access to sensitive information, potential data loss, and further propagation of the malicious code to other packages.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall @pergel/module-ui

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