CVE-2026-145492: form-data through 4.0.6 CRLF Injection via options.contentType and options.header
form-data through 4.0.6 contains a CRLF injection vulnerability in multiPartHeader that allows attackers to inject multipart part headers via unescaped options.contentType and options.header values. Attackers who influence these values can embed CRLF sequences and the boundary to smuggle extra form fields into multipart requests sent to receiving servers.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using npm/form-data through version 4.0.6 are exposed when an attacker can influence the values supplied as options.contentType or options.header for multipart parts. The impact occurs in multipart requests generated by the application and processed by a receiving server.
What does an attacker need to exploit it?
An attacker needs control over options.contentType or options.header values. They must be able to include CRLF sequences and the multipart boundary in those values to inject additional multipart part headers and smuggle extra form fields.
How can I determine whether my application is affected?
Review uses of form-data that create multipart parts and check whether options.contentType or options.header can be derived from request input or other attacker-controlled data. Versions through 4.0.6 are affected according to the available information.