CVE-2026-48596: CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') in elixir-tesla tesla
Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in elixir-tesla tesla allows HTTP header injection via Tesla.Multipart.add_content_type_param/2. Tesla.Multipart.add_content_type_param/2 appends caller-supplied strings to the multipart content_type_params list without validating for CR (\r) or LF (\n) characters. Tesla.Multipart.headers/1 then joins these params verbatim with "; " to construct the outgoing Content-Type header value. A param containing \r\n splits the header line, allowing arbitrary headers to be injected into the outbound HTTP request. Any application that forwards untrusted input (such as a user-supplied charset or parameter string) into add_content_type_param/2 is affected. This issue affects tesla: from 0.8.0 before 1.18.3.
AI Analysis
Technical Summary
The vulnerability arises because Tesla.Multipart.add_content_type_param/2 does not sanitize input parameters for CR (\r) or LF (\n) characters before appending them to the content_type_params list. Subsequently, Tesla.Multipart.headers/1 constructs the Content-Type header by joining these parameters with "; ", allowing an attacker to inject arbitrary HTTP headers by including CRLF sequences in the input. This can lead to HTTP request/response splitting attacks in applications using affected versions of the tesla library (0.8.0 up to but not including 1.18.3) when untrusted input is passed to add_content_type_param/2.
Potential Impact
The impact is limited to HTTP header injection via request/response splitting, which can potentially allow attackers to manipulate HTTP headers in outbound requests. The CVSS 4.0 base score is 2.1, indicating low severity with local attack vector and low impact on confidentiality, integrity, and availability. There are no known exploits in the wild. The vulnerability requires the attacker to supply crafted input to the vulnerable function, which is typically a local or application-level vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid passing untrusted or user-supplied input directly to Tesla.Multipart.add_content_type_param/2. Implement input validation or sanitization to remove CR and LF characters from parameters before passing them to this function.
CVE-2026-48596: CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') in elixir-tesla tesla
Description
Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in elixir-tesla tesla allows HTTP header injection via Tesla.Multipart.add_content_type_param/2. Tesla.Multipart.add_content_type_param/2 appends caller-supplied strings to the multipart content_type_params list without validating for CR (\r) or LF (\n) characters. Tesla.Multipart.headers/1 then joins these params verbatim with "; " to construct the outgoing Content-Type header value. A param containing \r\n splits the header line, allowing arbitrary headers to be injected into the outbound HTTP request. Any application that forwards untrusted input (such as a user-supplied charset or parameter string) into add_content_type_param/2 is affected. This issue affects tesla: from 0.8.0 before 1.18.3.
CVSS v4.0
Score 2.1low
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because Tesla.Multipart.add_content_type_param/2 does not sanitize input parameters for CR (\r) or LF (\n) characters before appending them to the content_type_params list. Subsequently, Tesla.Multipart.headers/1 constructs the Content-Type header by joining these parameters with "; ", allowing an attacker to inject arbitrary HTTP headers by including CRLF sequences in the input. This can lead to HTTP request/response splitting attacks in applications using affected versions of the tesla library (0.8.0 up to but not including 1.18.3) when untrusted input is passed to add_content_type_param/2.
Potential Impact
The impact is limited to HTTP header injection via request/response splitting, which can potentially allow attackers to manipulate HTTP headers in outbound requests. The CVSS 4.0 base score is 2.1, indicating low severity with local attack vector and low impact on confidentiality, integrity, and availability. There are no known exploits in the wild. The vulnerability requires the attacker to supply crafted input to the vulnerable function, which is typically a local or application-level vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid passing untrusted or user-supplied input directly to Tesla.Multipart.add_content_type_param/2. Implement input validation or sanitization to remove CR and LF characters from parameters before passing them to this function.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-05-22T09:36:56.834Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1f3494e29bf47b50fa2537
Added to database: 6/2/2026, 7:52:52 PM
Last enriched: 6/2/2026, 8:04:19 PM
Last updated: 6/3/2026, 4:59:49 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.