{"id":79462,"date":"2026-06-08T19:46:44","date_gmt":"2026-06-08T16:16:44","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-49756-multipart-form-data-header-injection-in-req-via-unescaped-name-filename-content_type\/"},"modified":"2026-06-08T19:46:44","modified_gmt":"2026-06-08T16:16:44","slug":"cve-2026-49756-multipart-form-data-header-injection-in-req-via-unescaped-name-filename-content_type","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-49756-multipart-form-data-header-injection-in-req-via-unescaped-name-filename-content_type\/","title":{"rendered":"CVE-2026-49756 &#8211; Multipart form-data header injection in Req via unescaped name\/filename\/content_type"},"content":{"rendered":"<p>CVE ID :CVE-2026-49756<\/p>\n<p>  Published : June 8, 2026, 4:16 p.m. | 17\u00a0minutes ago<\/p>\n<p>  Description :Improper Neutralization of CRLF Sequences (&#8216;CRLF Injection&#8217;) vulnerability in wojtekmach Req allows multipart parameter smuggling via attacker-influenced part metadata.<\/p>\n<p>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 &#8220;, r, or n closes the surrounding quoted value and starts a new header line; an additional rn&#8211; terminates the current part and prepends a smuggled part of the attacker&#8217;s choosing.<\/p>\n<p>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.<\/p>\n<p>This issue affects req: from 0.5.3 before 0.6.0.<\/p>\n<p>  Severity: 2.1 | LOW<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-49756 Published : June 8, 2026, 4:16 p.m. | 17\u00a0minutes ago Description :Improper Neutralization of CRLF Sequences (&#8216;CRLF Injection&#8217;) 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-79462","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/79462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=79462"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/79462\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=79462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=79462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=79462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}