CVE-2026-49756 Details
Description
Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in wojtekmach Req allows multipart parameter smuggling via attacker-influenced part metadata. Req.Utils.encode_form_part/2 in lib/req/utils.ex builds the per-part headers by interpolating the caller-supplied name, filename, and content_type values directly into the content-disposition and content-type lines with no escaping or CRLF stripping. A value containing ", \r, or \n closes the surrounding quoted value and starts a new header line; an additional \r\n--<boundary> terminates the current part and prepends a smuggled part of the attacker's choosing. This is reachable through every supported way of supplying a part. It is particularly easy when value is a %File.Stream{}, because filename then defaults to Path.basename(stream.path) and POSIX filenames may legitimately contain \r and \n. Any application that forwards user-controlled filenames (or field names / MIME types) through Req.post/2 with form_multipart: lets an attacker inject arbitrary headers into the outgoing multipart body or smuggle additional fields and parts into the request the victim service sends downstream. This issue affects req: from 0.5.3 before 0.6.0.
A CRLF injection vulnerability has been identified in the Wojtek Mach Req library, specifically in versions 0.5.3 prior to 0.6.0. This vulnerability allows for multipart parameter smuggling through attacker-controlled part metadata. The issue arises because the multipart form encoder directly interpolates the 'name', 'filename', and 'content_type' values into the headers without proper escaping or stripping of CRLF sequences. As a result, an attacker can inject additional headers, smuggle extra form fields, or prepend a new part into the outgoing request. This vulnerability is particularly exploitable when the 'value' parameter is a File.Stream, as POSIX filenames can contain CRLF characters. Applications that use Req to send multipart form data and allow user influence over these header values are at risk.
The vulnerability has been patched in Req version 0.6.0. Users should upgrade to this version. Additionally, when using Req to send multipart form data, sanitize any user-controlled values for 'name', 'filename', and 'content_type' to remove CRLF characters and quotes before including them in the request.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wojtekmach/req/security/advisories/GHSA-px9f-whj3-246m | CISA-ADP | Vendor Advisory |
| https://cna.erlef.org/cves/CVE-2026-49756.html | EEF | Third Party AdvisoryMitigation |
| https://github.com/wojtekmach/req/commit/74506ff2c5addf74df85d79dc726e9b2e264a8ba | EEF | Patch |
| https://github.com/wojtekmach/req/security/advisories/GHSA-px9f-whj3-246m | EEF | Vendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-49756 | EEF | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-93 | Improper Neutralization of CRLF Sequences ('CRLF Injection') | EEF |
Affected Products
| Product | Versions |
|---|---|
| wojtekmach req | >= 0.5.3, < 0.6.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 18, 2026 | Initial Analysis | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 8, 2026 | CVE Modified | CISA-ADP |
| Jun 8, 2026 | New CVE Received | EEF |