---
title: "form-data 4.0.6: release notes, upgrades and advisories"
description: "form-data 4.0.6: release notes, breaking changes by major version and 2 known advisories with their fix."
url: https://inlinr.com/packages/form-data
lang: en
---

[Packages](https://inlinr.com/packages)

# form-data

4.0.6 · 12 Jun 2026 MIT 236.8M / week [Repository](https://github.com/form-data/form-data) [Homepage](https://github.com/form-data/form-data#readme) [npm](https://www.npmjs.com/package/form-data) [Atom feed](https://inlinr.com/packages/feed/form-data)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/form-data/upgrade)

LineNewestSecurity

- 4.x 4.0.6 Safe from 4.0.6 Latest line
- 3.x 3.0.5 Safe from 3.0.5 [To 4.0.6](https://inlinr.com/packages/form-data/upgrade/3.0.5-4.0.6)
- 2.x 2.5.6 Safe from 2.5.6 [To 4.0.6](https://inlinr.com/packages/form-data/upgrade/2.5.6-4.0.6)
- 1.x and older 1.0.1 8 open advisories, worst critical  · last release Aug 2016, no longer updated [To 4.0.6](https://inlinr.com/packages/form-data/upgrade/1.0.1-4.0.6)

## Latest releases

[All 48 releases](https://inlinr.com/packages/form-data/releases)

1. 4.x · latest line
2. ### [4.0.6](https://inlinr.com/packages/form-data/releases/4.0.6 "Open this release") [](https://github.com/form-data/form-data/blob/HEAD/CHANGELOG.md "Read this release where it was published")  
12 Jun 2026

  - Escape CR, LF, and `"` in field names and filenames [8dff42c](https://github.com/form-data/form-data/commit/8dff42c6da654ed4e7ad4acb7f8ccd3831217c99 "https://github.com/form-data/form-data/commit/8dff42c6da654ed4e7ad4acb7f8ccd3831217c99")
  - Update [@ljharb/eslint-config](https://inlinr.com/packages/@ljharb/eslint-config), `auto-changelog`, `tape` [f31d21e](https://github.com/form-data/form-data/commit/f31d21ef10bf46e46344c3ee4f99acbef6be43e1 "https://github.com/form-data/form-data/commit/f31d21ef10bf46e46344c3ee4f99acbef6be43e1")
  - Update `hasown`, `mime-types` [92ae0eb](https://github.com/form-data/form-data/commit/92ae0eb5da94d6f01925d5f4fcffb2a1e50ed7cd "https://github.com/form-data/form-data/commit/92ae0eb5da94d6f01925d5f4fcffb2a1e50ed7cd")
3. ### [4.0.5](https://inlinr.com/packages/form-data/releases/4.0.5 "Open this release") [](https://github.com/form-data/form-data/blob/HEAD/CHANGELOG.md "Read this release where it was published")  
17 Nov 2025

  - Update [@ljharb/eslint-config](https://inlinr.com/packages/@ljharb/eslint-config), `eslint` [5822467](https://github.com/form-data/form-data/commit/5822467f0ec21f6ad613c1c90856375e498793c7 "https://github.com/form-data/form-data/commit/5822467f0ec21f6ad613c1c90856375e498793c7")
  - Set Symbol.toStringTag in the proper place [76d0dee](https://github.com/form-data/form-data/commit/76d0dee43933b5e167f7f09e5d9cbbd1cf911aa7 "https://github.com/form-data/form-data/commit/76d0dee43933b5e167f7f09e5d9cbbd1cf911aa7")
4. ### [4.0.4](https://inlinr.com/packages/form-data/releases/4.0.4 "Open this release") [](https://github.com/form-data/form-data/blob/HEAD/CHANGELOG.md "Read this release where it was published")  
17 Jul 2025

  - Add `auto-changelog` [811f682](https://github.com/form-data/form-data/commit/811f68282fab0315209d0e2d1c44b6c32ea0d479 "https://github.com/form-data/form-data/commit/811f68282fab0315209d0e2d1c44b6c32ea0d479")
  - Switch to using `crypto` random for boundary values [3d17230](https://github.com/form-data/form-data/commit/3d1723080e6577a66f17f163ecd345a21d8d0fd0 "https://github.com/form-data/form-data/commit/3d1723080e6577a66f17f163ecd345a21d8d0fd0")
  - Actually ensure the readme backup isn’t published [316c82b](https://github.com/form-data/form-data/commit/316c82ba93fd4985af757b771b9a1f26d3b709ef "https://github.com/form-data/form-data/commit/316c82ba93fd4985af757b771b9a1f26d3b709ef")

Dependency tracking

## Know when your own dependencies move

form-data had 1 security advisory in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[Details](https://inlinr.com/packages/form-data/security)

- [form-data uses unsafe random function in form-data for choosing boundary](https://inlinr.com/advisories/GHSA-fjxv-7rqg-78g4) Critical · fixed in 4.0.4, 3.0.4, 2.5.4
- [form-data: CRLF injection in form-data via unescaped multipart field names and filenames](https://inlinr.com/advisories/GHSA-hmw2-7cc7-3qxx) High · fixed in 4.0.6, 3.0.5, 2.5.6

## Health

[Details](https://inlinr.com/packages/form-data/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

Registry facts last checked 22 Nov 2026\. Releases and advisories last read 22 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
