Intel

AIKIDO-2025-10024

undici is vulnerable to Use of Insufficiently Random Values

Use of Insufficiently Random ValuesCVE-2025-22150 Published Jan 16, 2025

64

Medium Risk

This Affects:

JSundici
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
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.

Who does this affect?

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

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.

How to fix this

Upgrade the undici library to the patch version.