CVE-2026-12143
form-data does not escape CR/LF/quote in multipart field names and filenames (CRLF injection)
Check your servers for CVE-2026-12143
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-12143 affects form-data, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity high, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.36%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 72.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 12 Jun 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-93 Improper Neutralization of CRLF Sequences
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
form-data
package
form-data |
affected before 2.5.6 affected from 3.0.0, before 3.0.5 affected from 4.0.0, before 4.0.6
Other versions: unaffected
|
Is my server affected?
Find the installed version of form-data and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i form-data
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-12143 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-12143RHEL, Rocky, Alma, Fedora
rpm -q form-data
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-12143Alpine
apk list --installed | grep -i form-dataWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-12143
trivy image --scanners vuln IMAGE | grep CVE-2026-12143
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://access.redhat.com/security/cve/CVE-2026-12143 access.redhat.com · vdb entry
- RHBZ#2488480 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:59136 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:48151 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:34342 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:57590 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:66545 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:66488 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60387 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60390 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60388 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60389 access.redhat.com · vendor advisory
45 more
- https://access.redhat.com/errata/RHSA-2026:60391 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36319 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36625 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:56338 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:66003 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59155 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59153 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:41951 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36754 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:41929 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:41928 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:50300 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60520 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:63047 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:44263 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:57545 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60446 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:44267 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:57801 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60477 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:48693 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:54770 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:48124 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:62260 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:33155 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:33160 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:33163 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:33173 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:33183 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:56431 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:56366 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:57013 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:41031 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:42146 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:43052 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:42796 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:41066 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:40262 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:63373 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:63355 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59556 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59557 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59579 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59558 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59559 access.redhat.com · vendor advisory
Patches and release notes
- Fix commit (4.0.6) github.com · patch
- Fix commit (3.0.5) github.com · patch
- Fix commit (2.5.6) github.com · patch
Exploits and proof of concept
- GHSA-hmw2-7cc7-3qxx github.com · vendor advisory, exploit
Other references
- npm: form-data npmjs.com · product
- CWE-93 cwe.mitre.org · technical description
- WHATWG HTML: multipart/form-data encoding algorithm html.spec.whatwg.org · technical description
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12143.json security.access.redhat.com
Source: the record CVE-2026-12143 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse