Executive summary
CVE-2026-145492 is a CRLF injection vulnerability in the form-data Node.js package. Releases through 4.0.6 do not sufficiently sanitize options.contentType and options.header when constructing multipart part headers in the _multiPartHeader function. If an application passes attacker-influenced data into either option, the attacker can terminate the intended header line, insert additional header content, and introduce a crafted multipart boundary.
The resulting request may contain extra form fields that the receiving server did not expect. That creates a potential request-integrity and parameter-smuggling issue, particularly where uploaded metadata, fallback content types, or custom headers originate from users. The supplied records describe remote reachability, but there is no evidence of exploitation in the wild, no CISA Known Exploited Vulnerabilities listing, and no public proof-of-concept recorded in the cited advisory material. Severity should therefore be assessed according to the application's data flow and receiving parser rather than from the CVE identifier alone.
Vulnerability details
The vulnerable logic is located in _multiPartHeader within lib/form_data.js. Version 4.0.6 is explicitly linked to the affected code at lines 190–222. The weakness is classified as CWE-93, Improper Neutralization of CRLF Sequences (CRLF Injection).
Multipart bodies use line-delimited headers for each part. If a carriage return and line feed pair can be introduced into a header value, the value no longer remains confined to its intended line. An attacker can use the injected sequence to add further header lines and potentially define another boundary, allowing the attacker to structure additional parts within the same HTTP request.
A practical exploitation path requires two conditions:
- The application uses an affected
form-datarelease.
- Untrusted or inadequately validated data influences
options.contentTypeoroptions.header.
Examples of relevant application patterns include forwarding a client-provided media type, generating custom part headers from user metadata, or assembling headers through string concatenation. An application that supplies only fixed, trusted constants to both options has substantially less exposure, although dependency upgrades remain appropriate.
The impact of a successful injection depends on the destination server. It could include binding an unexpected field to a request, replacing a value, triggering inconsistent interpretation between components, or violating an API's expected multipart schema. The supplied sources do not establish a universal impact for every deployment.
Scoring and threat context
Published scoring differs between scoring systems:
- CVSS 3.1:
3.7— LOW
- CVSS 4.0:
6.3— MEDIUM
- Reported CVSS vector identifier:
83251b91-4cc7-4094-a5c7-464a1b83ea10
The network attack vector reflects the fact that the resulting malicious request travels over a network. It does not eliminate the application-specific prerequisite that an attacker must influence one of the vulnerable option values.
No exploitation evidence is reported in the provided material. The CVE is also not identified as present in the CISA Known Exploited Vulnerabilities catalog. Against that background, this vulnerability is best treated as a conditional request-integrity flaw with potentially meaningful consequences in applications that expose the relevant inputs.
Affected systems
- Product:
form-data
- Affected versions: through
4.0.6
- Platform: Node.js and JavaScript applications that use
form-datato constructmultipart/form-datarequests
- Vulnerable function:
_multiPartHeader
- Relevant option values:
options.contentTypeandoptions.header
- Weakness: CWE-93 — Improper Neutralization of CRLF Sequences (CRLF Injection)
- Associated CAPEC entries: CAPEC-15 and CAPEC-81
The risk is greatest where user-controlled file metadata, media types, filenames, or custom header values flow into multipart construction and where the destination accepts additional fields without strict schema validation.
Mitigation
The primary remediation is to update form-data to a release containing the fix. The supplied sources identify the GitHub security advisory GHSA-hmw2-7cc7-3qxx as the tracking source, while the exact fixed package version is not stated in the provided context. Dependency manifests and lockfiles should be checked after upgrading to confirm that the resolved version is no longer within the affected range.
Where upgrade timing is constrained, applications should enforce controls before values reach the library:
- Reject
,
, and NUL characters in values supplied to options.contentType or options.header.
- Validate media types against the syntax and media types the application expects instead of accepting arbitrary strings.
- Use an allowlist for permitted custom header names and value formats.
- Avoid concatenating user-controlled values into multipart headers.
- Configure receiving systems to reject unexpected multipart fields and parts that do not match the endpoint schema.
- Limit multipart part counts and sizes to reduce the practical value of malformed or oversized payloads.
The context also recommends applying security patches, validating multipart request headers strictly, and inspecting both outbound and inbound multipart traffic for anomalous boundaries, duplicate header names, or unexpected part counts. The GitHub advisory should be monitored for confirmation of the fixed release and any additional upstream guidance.
Expert insight
The important security boundary is not simply whether an HTTP request is remote. It is whether untrusted data crosses into multipart header construction without normalization. A useful review starts by tracing every call site that supplies contentType or header, including wrappers, upload helpers, and generic APIs that accept metadata objects. It then continues to the receiving side, because a strict multipart parser can prevent an injected field from becoming an accepted business parameter even when an outbound request is malformed.
Version scanning is also important because form-data is commonly present as a transitive dependency. A direct dependency declaration may be absent even when the vulnerable package is resolved elsewhere in the dependency tree. Lockfiles, software bills of materials, and deployment images should be checked rather than relying solely on package.json.
CVE-2026-145492 demonstrates that input sanitization must cover structured HTTP artifacts, not only visible form fields. Even when the original business value appears harmless, allowing control characters into a header can alter the structure of the entire multipart message.