CVE catalog

CVE-2026-12143

form-data is a library for creating readable multipart/form-data streams. In versions through 4.0.5, the `field` argument to `FormData#append` and the `filename` option are concatenated verbatim into

[CVE catalog]

Severity
High · CVSS 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.67% · Oct 25, 2026

form-data is a library for creating readable multipart/form-data streams. In versions through 4.0.5, the `field` argument to `FormData#append` and the `filename` option are concatenated verbatim into the `Content-Disposition` header without escaping carriage return (CR), line feed (LF), or double-quote (") characters. An application that passes attacker-controlled data as a field name or filename (for example, an API gateway that turns JSON object keys into multipart field names) allows the attacker to terminate the header line and inject additional headers, or to smuggle entire additional multipart parts, into the request the application forwards to a backend. This can let the attacker add or override form fields (e.g. set `is_admin=true`) seen by the downstream parser. This is an instance of CWE-93 (CRLF injection). The fix escapes CR, LF, and `"` as `%0D`, `%0A`, and `%22` in field names and filenames, matching the serialization browsers use per the WHATWG HTML multipart/form-data encoding algorithm. Exploitation requires the consuming application to use untrusted input as a field name or filename; applications that use only fixed/trusted field names are not affected. Fixed in 2.5.6, 3.0.5, and 4.0.6.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-form-datasid4.0.6+~2.1.0-1fixed
Debiannode-form-dataforky4.0.6+~2.1.0-1fixed
Debiannode-form-datatrixie4.0.1-2vulnerable
Debiannode-form-databookworm4.0.0-1+deb12u1vulnerable
Cpenode-form-dataNot reportedNot reportedvulnerable
Npmform-dataNot reported4.0.6fixed
Npmform-dataNot reported3.0.5fixed
Npmform-dataNot reported4.0.6fixed
Opensusevelociraptortumbleweed0.76.7.0.git145.b60ef1146-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-form-datasourcesid4.0.6+~2.1.0-1not yet assignedNot reported[1139959]
Debiannode-form-datasourceforky4.0.6+~2.1.0-1not yet assignedNot reported[1139959]
Debiannode-form-datasourcetrixie(unfixed)not yet assignedNot reported[1139959]
Debiannode-form-datasourcebookworm(unfixed)not yet assignedNot reported[1139959]
Npmform-datanpmNot reported4.0.6Not reportedGHSA-HMW2-7CC7-3QXXNot reported
Npmform-datanpmNot reported3.0.5Not reportedNot reportedNot reported
Npmform-datanpmNot reported4.0.6Not reportedNot reportedNot reported
Opensusevelociraptorrpmtumbleweed0.76.7.0.git145.b60ef1146-1.1Not reportedOPENSUSE-SU-2026:12070-1Not reported

[Debian bug #1139959]

Notes

[trixie] node-form-data: Minor issue [bookworm] node-form-data: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-form-data]Affected
    Details (2)
    • 4.0.0-1+deb12u1 · all · bookworm

      Affected

      nvd · node-form-data · debian · bookworm; nvd · node-form-data · debian · 12

    • 4.0.0-1+deb12u1 · all · bookworm

      Affected

      nvd · node-form-data · debian · bookworm; nvd · node-form-data · debian · 12

[Debian 13 (Trixie)]

  • [node-form-data]Affected
    Details (2)
    • 4.0.1-2 · all · trixie

      Affected

      nvd · node-form-data · debian · 13

    • 4.0.1-2 · all · trixie

      Affected

      nvd · node-form-data · debian · 13

[openSUSE Tumbleweed]

  • [velociraptor]Affected

    Source package: [velociraptor]

    Details (1)
    • 0.7.0.4.git185.a5708584-2.3 · x86_64 · tumbleweed

      Affected · Fixed: 0.76.7.0.git145.b60ef1146-1.1

      nvd · velociraptor · opensuse · tumbleweed

Observed:

References