CVE-2025-22150

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-22150
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22150.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-22150
Aliases
Downstream
Related
Published
2025-01-21T17:46:58Z
Modified
2025-10-22T18:45:31.221149Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Undici Uses Insufficiently Random Values
Details

Undici is an HTTP/1.1 client. Starting in version 4.5.0 and prior to versions 5.28.5, 6.21.1, and 7.2.3, undici uses Math.random() to choose the boundary for a multipart/form-data request. It is known that the output of Math.random() can be predicted if several of its generated values are known. If there is a mechanism in an app that sends multipart requests to an attacker-controlled website, they can use this to leak the necessary values. Therefore, an attacker can tamper with the requests going to the backend APIs if certain conditions are met. This is fixed in versions 5.28.5, 6.21.1, and 7.2.3. As a workaround, do not issue multipart requests to attacker controlled servers.

Database specific
{
    "cwe_ids": [
        "CWE-330"
    ]
}
References

Affected packages

Git / github.com/nodejs/undici

Affected ranges

Type
GIT
Repo
https://github.com/nodejs/undici
Events
Type
GIT
Repo
https://github.com/nodejs/undici
Events
Type
GIT
Repo
https://github.com/nodejs/undici
Events

Affected versions

v4.*

v4.10.0
v4.10.1
v4.10.2
v4.10.3
v4.10.4
v4.11.0
v4.11.1
v4.11.2
v4.11.3
v4.12.0
v4.12.2
v4.13.0
v4.14.0
v4.14.1
v4.15.0
v4.15.1
v4.16.0
v4.5.0
v4.5.1
v4.6.0
v4.7.0
v4.7.1
v4.7.2
v4.7.3
v4.8.0
v4.8.1
v4.8.2
v4.9.0
v4.9.1
v4.9.2
v4.9.3
v4.9.4
v4.9.5

v5.*

v5.0.0
v5.1.0
v5.1.1
v5.10.0
v5.11.0
v5.12.0
v5.13.0
v5.14.0
v5.15.0
v5.15.1
v5.15.2
v5.16.0
v5.17.0
v5.17.1
v5.18.0
v5.19.0
v5.19.1
v5.2.0
v5.20.0
v5.21.0
v5.21.1
v5.21.2
v5.22.0
v5.22.1
v5.23.0
v5.23.4
v5.24.0
v5.25.0
v5.25.1
v5.25.2
v5.25.3
v5.26.0
v5.26.1
v5.26.2
v5.26.3
v5.26.4
v5.26.5
v5.27.0
v5.27.1
v5.27.2
v5.28.0
v5.28.1
v5.28.2
v5.28.3
v5.28.4
v5.3.0
v5.4.0
v5.5.0
v5.5.1
v5.6.0
v5.6.1
v5.7.0
v5.8.0
v5.8.1
v5.8.2
v5.9.1

v6.*

v6.0.0
v6.0.1
v6.1.0
v6.10.0
v6.10.1
v6.10.2
v6.11.0
v6.11.1
v6.12.0
v6.13.0
v6.14.0
v6.14.1
v6.15.0
v6.16.0
v6.16.1
v6.17.0
v6.18.0
v6.18.1
v6.18.2
v6.19.0
v6.19.1
v6.19.2
v6.19.3
v6.19.4
v6.19.5
v6.19.6
v6.19.7
v6.19.8
v6.2.0
v6.2.1
v6.20.0
v6.20.1
v6.21.0
v6.3.0
v6.4.0
v6.5.0
v6.6.0
v6.6.1
v6.6.2
v6.7.0
v6.7.1
v6.8.0
v6.9.0

v7.*

v7.0.0
v7.1.0
v7.1.1
v7.2.0
v7.2.1
v7.2.2