Critical Malicious Code Vulnerability in chai-uuids Package

chai-uuids Updated 09 Dec 2025

Summary

09/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192383: Malicious code in chai-uuids (npm). Affected versions are not published. 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 chai-uuids package is a utility library for generating UUIDs (Universally Unique Identifiers) in Node.js applications. It is commonly used in various projects for creating unique identifiers for objects, sessions, or database entries. However, this package has been compromised, leading to significant security concerns for any application that relies on it.

Vulnerability Detail

The vulnerability stems from the presence of malicious code within the chai-uuids package. This code can fully compromise any computer where the package is installed, allowing unauthorized access to sensitive information, including secrets and keys. The malicious nature of the code is classified under CWE-506, indicating that it contains embedded malicious code. Users are advised to treat any system running this package as potentially compromised.

How To Fix

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

npm uninstall chai-uuids

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 workaround, you can temporarily replace the functionality provided by chai-uuids with another UUID generation library, such as uuid. You can install it using npm: npm install uuid. Then, update your code to use this library for generating UUIDs instead of chai-uuids.

Conclusion

The discovery of malicious code within the chai-uuids package poses a severe risk to any system that has it installed. Immediate action is required to mitigate the threat, including removing the package and securing sensitive information. Users should remain vigilant and consider alternative libraries for UUID generation.

See every vulnerability recorded for chai-uuids →

Share this vulnerability

FAQ

Immediately remove the chai-uuids package from your project and rotate any sensitive information stored on the affected system.

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.

As of now, there is no patched version available. It is crucial to remove the package entirely.

Failing to address this vulnerability can lead to unauthorized access to sensitive data, complete system compromise, and potential data breaches.

No, it is highly recommended to remove the package regardless of whether you notice immediate issues, as the malicious code can operate without obvious symptoms.

How To Fix

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

npm uninstall chai-uuids

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