PT-2025-30061 · Pypi+5 · Form-Data+5

Benweissmann

·

Published

2025-07-18

·

Updated

2026-03-10

·

CVE-2025-7783

CVSS v4.0

9.4

Critical

VectorAV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Name of the Vulnerable Software and Affected Versions form-data versions < 2.5.4 form-data versions 3.0.0 through 3.0.3 form-data versions 4.0.0 through 4.0.3
Description A vulnerability exists in the form-data JavaScript library due to the use of insufficiently random values when generating boundary values for multipart form-encoded data. This predictability allows attackers to manipulate HTTP requests, potentially injecting malicious parameters into backend systems. The vulnerability arises from the library utilizing the Math.random() function, which is known to be pseudo-random and predictable. An attacker who can observe Math.random() values generated by the application can predict future values, including the boundary value, and craft a malicious payload. This can lead to HTTP Parameter Pollution (HPP) and potentially remote code execution (RCE). The vulnerability requires the application to use form-data with user-controlled data and expose Math.random() values.
Recommendations Update to form-data version 4.0.4. Update to form-data version 3.0.4. Update to form-data version 2.5.4.

Exploit

Fix

RCE

Use of Insufficiently Random Values

Weakness Enumeration

Related Identifiers

AZL-65606
AZL-65610
CVE-2025-7783
DLA-4261-1
GHSA-FJXV-7RQG-78G4
OESA-2025-2276
OPENSUSE-SU-2025:15373-1
OPENSUSE-SU-2025:15380-1
SUSE-SU-2025:3919-1
SUSE-SU-2025_3919-1
USN-7976-1

Affected Products

Astra Linux
Debian
Linuxmint
Suse
Ubuntu
Form-Data