{"cve":"CVE-2025-22150","nvd":{"published":"2025-01-21T18:15:14.887","modified":"2026-06-17T08:45:21.600","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8},"cwes":["CWE-330"],"references":["https://blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7f","https://github.com/nodejs/undici/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.js#L113","https://github.com/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0","https://github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a","https://github.com/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:58:41.599736885+00:00"},"epss":{"cve":"CVE-2025-22150","score":0.00763,"percentile":0.55393,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-c76h-2ccp-4975","url":"https://osv.dev/vulnerability/GHSA-c76h-2ccp-4975","summary":"Use of Insufficiently Random Values in undici","modified":"2026-09-10T03:50:56.329194144Z","packages":[{"ecosystem":"npm","name":"undici","purl":"pkg:npm/undici","ranges":[">=4.5.0 <5.28.5"],"fixed":["5.28.5"]},{"ecosystem":"npm","name":"undici","purl":"pkg:npm/undici","ranges":[">=6.0.0 <6.21.1"],"fixed":["6.21.1"]},{"ecosystem":"npm","name":"undici","purl":"pkg:npm/undici","ranges":[">=7.0.0 <7.2.3"],"fixed":["7.2.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}