Intel

AIKIDO-2025-10024

undici is vulnerable to Use of Insufficiently Random Values

CVE-2025-22150Published Jan 16, 2025
January 16, 2025

64

CVE Score

Medium

Use of Insufficiently Random Values

Are you affected? Scan for Free

TL;DR

Affected versions of the undici library are vulnerable because they use insufficiently random values generated by Math.random() when encoding form-data in the body. Since Math.random() produces low-entropy and predictable values, attackers could potentially exploit this flaw to manipulate or alter data by predicting the encoded values. This vulnerability compromises the integrity of form-data, potentially leading to unauthorized data manipulation or injection attacks.

How do I fix this?

Upgrade the undici library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

4.4.0 - 5.28.4

Fixed in 5.28.5

6.0.0 - 6.21.0

Fixed in 6.21.1

7.0.0 - 7.2.2

Fixed in 7.2.3

Background info

undici is vulnerable to Use of Insufficiently Random Values in versions 4.4.0 - 5.28.4, 6.0.0 - 6.21.0 and 7.0.0 - 7.2.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea