{"id":"CVE-2025-7783","published":"2025-07-18T16:34:44Z","modified":"2025-11-03T20:07:41Z","title":"Usage of unsafe random function in form-data for choosing boundary","vendor":null,"product":null,"tier":"tail","description":{"text":"Use of Insufficiently Random Values vulnerability in form-data allows HTTP Parameter Pollution (HPP). This vulnerability is associated with program files lib/form_data.Js.\n\nThis issue affects form-data: < 2.5.4, 3.0.0 - 3.0.3, 4.0.0 - 4.0.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0181,"percentile":0.79148,"provenance":"source"},"cwes":[{"id":"CWE-330","name":"Use of Insufficiently Random Values"}],"references":[{"url":"https://github.com/form-data/form-data/security/advisories/GHSA-fjxv-7rqg-78g4","tags":["third-party-advisory"]},{"url":"https://github.com/form-data/form-data/commit/3d1723080e6577a66f17f163ecd345a21d8d0fd0","tags":["patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00023.html","tags":[]}],"priority":{"score":27.4,"factors":[{"name":"EPSS percentile","points":15.83},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.58}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-07-18","earliestUrl":"https://github.com/benweissmann/CVE-2025-7783-poc","repos":[{"name":"benweissmann/CVE-2025-7783-poc","url":"https://github.com/benweissmann/CVE-2025-7783-poc","stars":32,"created":"2025-07-18"}]},"first":{"date":"2025-07-18","source":"PoC-in-GitHub","url":"https://github.com/benweissmann/CVE-2025-7783-poc"},"provenance":"source"},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 2.5.4","3.0.0 - 3.0.3","4.0.0 - 4.0.3"]}],"capec":[{"id":"CAPEC-460","name":"HTTP Parameter Pollution (HPP)"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-07-22T14:54:27.721309Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"form-data","vulnerableRanges":["<2.5.4",">=3.0.0, <3.0.4",">=4.0.0, <4.0.4"],"patched":["2.5.4","3.0.4","4.0.4"],"from":["GHSA-fjxv-7rqg-78g4"],"provenance":"source"}],"summary":{"text":"The flaw is an insufficiently random value weakness in the form-data package, specifically in the lib/form_data.js component, where the boundary used to delimit multipart form fields is chosen with an unsafe random function. An attacker with network access can exploit this to perform HTTP Parameter Pollution, and doing so requires the attack complexity to be high, meaning the attacker must overcome specific conditions, with no authentication or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:29:35Z"},"euvd":{"id":"EUVD-2025-21906","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/benweissmann/CVE-2025-7783-poc"],"lineage":{"packageHistory":[{"cve":"CVE-2025-7783","published":"2025-07-18","fixed":"4.0.4","kev":false},{"cve":"CVE-2026-12143","published":"2026-06-12","fixed":"4.0.6","kev":false,"link":{"from":"CVE-2025-7783","to":"CVE-2026-12143","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:form-data","fromFixed":"2.5.4","toFixed":"2.5.6","daysApart":329},{"kind":"version-step","provenance":"source","package":"npm:form-data","fromFixed":"3.0.4","toFixed":"3.0.5","daysApart":329}]}}],"package":"npm:form-data"}}