undici is vulnerable to Use of Insufficiently Random Values
64
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
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.
Upgrade the undici library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant