Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 92%

CVE-2026-49756: CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection') in wojtekmach req

0
Low
VulnerabilityCVE-2026-49756cvecve-2026-49756cwe-93
Published: 06/08/2026 (06/08/2026, 15:20:24 UTC)
Source: CVE Database V5
Vendor/Project: wojtekmach
Product: req

Description

CVE-2026-49756 is a CRLF injection vulnerability in the wojtekmach req library versions 0.5.3 before 0.6.0. It occurs because Req.Utils.encode_form_part/2 directly interpolates user-supplied name, filename, and content_type values into multipart headers without escaping or stripping CRLF characters. This allows an attacker to inject arbitrary headers or smuggle additional multipart fields by including CR or LF characters in these values, especially when using %File.Stream{} where filenames may contain such characters. The vulnerability enables multipart parameter smuggling in downstream requests.

CVSS v4.0

Score 2.1low

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Affected software

Affected versions
=0.5.3

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 07:28:08 UTC

Technical Analysis

The vulnerability arises from improper neutralization of CRLF sequences in the req library's multipart form data construction. Specifically, the encode_form_part/2 function builds per-part headers by directly inserting caller-supplied metadata (name, filename, content_type) into content-disposition and content-type header lines without sanitization. An attacker can exploit this by crafting values containing carriage return and line feed characters to prematurely close header lines and inject additional headers or multipart parts. This affects all ways of supplying parts, with particular ease when filenames come from POSIX file paths that may include CR or LF characters. The issue affects req versions from 0.5.3 up to but not including 0.6.0.

Potential Impact

An attacker able to control multipart form part metadata can inject arbitrary headers or smuggle additional multipart fields into requests sent downstream by applications using the vulnerable req library. This can lead to request smuggling attacks or manipulation of request contents, potentially impacting downstream services that process these requests. The CVSS 4.0 score is low (2.1), indicating limited impact and exploitability, requiring local access and partial attack complexity.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. There is no official fix or patch link provided at this time. Until a fix is available, avoid forwarding user-controlled filenames, field names, or MIME types through Req.post/2 with form_multipart enabled. Consider sanitizing or validating these inputs to remove CR and LF characters before passing them to the req library.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-06-01T13:45:22.448Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a26e46de29bf47b501e5322

Added to database: 06/08/2026, 15:49:01 UTC

Last enriched: 07/30/2026, 07:28:08 UTC

Last updated: 07/31/2026, 19:22:59 UTC

Views: 73

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses