Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-141536

CVE-2026-141536: 
Ruby vulnerability analysis and mitigation

Overview

CVE-2026-141536 is a CRLF injection vulnerability in the Addressable Ruby gem (GHSA-qg8x-qm93-fw27) where Addressable::URI#request_uri returns stored control characters and spaces without percent-encoding them, enabling HTTP request line splitting and header injection. It affects all versions from 2.1.2 through 2.9.2 (the first version introducing #request_uri), and is fixed in version 2.10.0. The vulnerability was reported by Praneeth (@praneeth-bala) of UCSB SecLab, published by the maintainer on November 23, 2026, and added to the GitHub Advisory Database on December 1, 2026. It carries a CVSS v3.1 base score of 3.7 (Low) (Github Advisory, Security Advisory).

Technical details

The root cause is improper neutralization of CRLF sequences (CWE-93) and CRLF sequences in HTTP headers (CWE-113). Addressable::URI.parse and the path=/query= setters accept control characters without validation, and #request_uri concatenates path and query without encoding them — violating RFC 9112 §3 and RFC 3986, which prohibit CR, LF, and space in request targets. An attacker who can supply a crafted URI containing embedded sequences to an application that passes #request_uri output directly into a raw HTTP request line can terminate the request line early and inject arbitrary headers (e.g., overriding Host or Authorization) or, with HTTP keep-alive, potentially smuggle a second request on the same connection. Exploitation requires a client implementation that writes #request_uri directly into the request line without its own validation — common clients like Net::HTTP and the http gem 5.x are not vulnerable because they independently validate or encode the request line (Security Advisory, Patch Commit).

Impact

Successful exploitation allows an unauthenticated remote attacker to inject arbitrary HTTP headers into outgoing requests made by the vulnerable application, potentially overriding security-sensitive headers such as Host or Authorization. In HTTP keep-alive scenarios, depending on client and server behavior, an attacker could smuggle an additional request on the same connection, which may lead to unauthorized actions on the target server. There is no confidentiality or availability impact; the integrity impact is limited to manipulation of outgoing HTTP request headers (Github Advisory, Security Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Github Advisory). The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires high attack complexity — specifically, the attacker must be able to supply a crafted URI to an application using a non-standard HTTP client that writes #request_uri output directly into raw request lines without independent validation.

Exploitation steps

  1. Identify a vulnerable target: Find a Ruby application using the addressable gem (versions 2.1.2–2.9.2) that accepts untrusted URI input and passes Addressable::URI#request_uri output directly into an HTTP request line via a custom or non-standard HTTP client.
  2. Craft a malicious URI: Construct a URI containing embedded CRLF sequences and injected header content in the path or query string, for example: http://example.com/path?q=value%0D%0AX-Injected:%20malicious (or with literal CR/LF characters if the parser accepts them).
  3. Supply the URI to the application: Deliver the crafted URI through any input vector the application accepts (e.g., a URL parameter, webhook callback, redirect target, or API input).
  4. Trigger the HTTP request: Cause the application to make an outbound HTTP request using the crafted URI, resulting in #request_uri returning the path and query with unencoded control characters.
  5. Achieve header injection or request smuggling: The injected CRLF terminates the request line early; subsequent text is interpreted as HTTP headers by the server, allowing header override (e.g., Host, Authorization) or, with keep-alive, initiating a second smuggled request on the same connection (Security Advisory, Patch Commit).

Indicators of compromise

  • Network: Outbound HTTP requests from the application server containing raw CR (\r) or LF (\n) characters in the request line or unexpected injected headers (e.g., duplicate Host, unexpected Authorization headers) visible in network captures or proxy logs.
  • Logs: Application or proxy access logs showing HTTP requests with unusual or malformed request targets containing control characters, spaces, or multi-line entries that appear to split into multiple requests.
  • Application Behavior: Unexpected HTTP responses or server-side errors attributable to malformed request lines; anomalous behavior in downstream services receiving requests with overridden headers.

Mitigation and workarounds

Upgrade the addressable gem to version 2.10.0, which percent-encodes control characters (U+0000–U+001F and U+007F) and spaces in #request_uri output before they can be written into an HTTP request line (Github Advisory, Release). If immediate upgrade is not possible, apply one of the following workarounds: (1) reject URIs whose request_uri matches /[\x00-\x20\x7F]/ before sending; (2) call uri.normalize.request_uri instead of uri.request_uri, as #normalize already percent-encodes these characters; or (3) use an HTTP client that independently validates the request line, such as Net::HTTP (Security Advisory).

Community reactions

The vulnerability was credited to Praneeth (@praneeth-bala) of UCSB SecLab, indicating academic security research involvement. The fix was co-authored with Claude Opus 5.5 as noted in the patch commit message, which is a notable detail about AI-assisted remediation. Community discussion has been minimal given the low severity rating and limited exploitability scope (Patch Commit, Github Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-qrq6-rcpx-pmm6MEDIUM4.8
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-cwmp-x65r-27fvLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 02, 2026
GHSA-qg8x-qm93-fw27LOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-c7j3-jq7p-v3prLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-v6hg-69pc-4f3fLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management