form-data vulnerabilities

A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications.

Registry
npm
Latest
4.0.6
License
MIT

2 known advisories

The latest version, 4.0.6, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install form-data@4.0.6

Security advisories for form-data

  • HighGHSA-hmw2-7cc7-3qxx15 Jun 2026

    form-data: CRLF injection in form-data via unescaped multipart field names and filenames

    Affected
    <2.5.6 · >=3.0.0 <3.0.5 · >=4.0.0 <4.0.6
    Fixed in
    2.5.6, 3.0.5, 4.0.6
  • CriticalGHSA-fjxv-7rqg-78g421 Jul 2025

    form-data uses unsafe random function in form-data for choosing boundary

    Affected
    <2.5.4 · >=3.0.0 <3.0.4 · >=4.0.0 <4.0.4
    Fixed in
    2.5.4, 3.0.4, 4.0.4

Which of your client projects still run an old form-data?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.