Use of insufficiently random values in undici - CVE-2025-22150

 

Use of insufficiently random values in undici - CVE-2025-22150

Published: January 22, 2025


Vulnerability identifier: #VU103227
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-22150
CWE-ID: CWE-330
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Node.js
Affected software:
undici

Detailed vulnerability description

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to the application uses "Math.random()" from the fetch() function to choose the boundary for a "multipart/form-data" request. A remote attacker with ability to intercept traffic can tamper with the requests going to the backend APIs.


How to mitigate CVE-2025-22150

Install updates from vendor's website.

Sources