CVE-2026-141536: Addressable Addressable URI#request_uri Returns Control Characters Vulnerability
LOWCVE-2026-141536 is a LOW (CVSS 3.7) addressable uri#request_uri returns control characters vulnerability (CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')) affecting Addressable libraries in the RubyGems ecosystem. The issue involves addressable uri#request_uri returns control characters unencoded with possible http request splitting. Remediation is available by upgrading affected packages to version 2.10.0.
CVE-2026-141536 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2026-141536
To remediate this vulnerability, upgrade all affected Addressable dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade addressable to 2.10.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for addressable
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-141536, inspect your project dependencies for Addressable:
inspect dependencies for addressable
Analyze the terminal output to locate any version of Addressable in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.10.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting'), where the product receives data from an http agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes cr and lf characters before the data is included in outgoing http headers. In Addressable, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-141536 Affected Addressable Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
addressable
|
RubyGems |
≥ 2.1.2
< 2.10.0
|
2.10.0
|
References
Frequently Asked Questions
What is CVE-2026-141536?
Which Addressable versions are affected?
What version fixes CVE-2026-141536?
Is addressable affected?
What is the CVSS score of CVE-2026-141536?
What CWE is associated with CVE-2026-141536?
How can I check RubyGems dependencies for CVE-2026-141536?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qg8x-qm93-fw27",
"modified" : "2026-12-01T23:55:58Z",
"published" : "2026-12-01T23:55:58Z",
"aliases" : [ "CVE-2026-141536" ],
"summary" : "Addressable URI#request_uri returns control characters unencoded with possible HTTP request splitting",
"details" : "### Impact\n\n`Addressable::URI#request_uri` returns the path and query as stored, including carriage returns, line feeds, other control characters and spaces. `#request_uri` was designed to be written into an HTTP request line, so a client that does that with a URI built from untrusted input could have the request line ended early and extra headers, or a second request, added after it. The HTTP protocol interprets text after the line break as headers, which can add or override headers such as `Host` or `Authorization`, or, with keep-alive, could potentially start a second request on the same connection. What that might achieve depends on the client and the server it talks to.\n\n`Addressable::URI.parse` and the `path=` and `query=` setters accept control characters, and `#request_uri` joins the path and query without encoding them. RFC 9112 §3 doesn't allow CR, LF or space in a request target, and RFC 3986 doesn't allow them in a URI. `#normalize` already percent-encodes them, so code that calls `uri.normalize.request_uri` would not be affected by this vulnerability, but `uri.request_uri` alone would.\n\nCommon clients don't pass the characters through. `Net::HTTP` raises `ArgumentError: A Request-Line must not contain CR or LF`. The `http` gem 5.x percent-encodes them in its own URI normalizer before calling `#request_uri`, and 6.x no longer calls `#request_uri`. Vulnerable code would need to use some other client implementation that writes `#request_uri` directly into the HTTP request line.\n\n### Affected Versions\n\nThis vulnerability affects Addressable >= 2.1.2, the first version with `#request_uri`. It is fixed in 2.10.0, where `#request_uri` percent-encodes control characters (U+0000 to U+001F and U+007F) and space, and leaves every other character as written. Notably, a client that constructed requests using `#request_uri` would now send them with the characters percent-encoded, where previously it might have raised an exception. This is comparable to the current behavior of the `http` and `faraday` gems.\n\n### Workarounds\n\n- Reject URIs whose `request_uri` matches `/[\\x00-\\x20\\x7F]/` before sending.\n- Build requests with a client that validates the request line, such as `Net::HTTP`.\n\n### Credits\n\nReported by Praneeth (@praneeth-bala), UCSB SecLab.\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* [Open an issue](https://github.com/sporkmonger/addressable/issues)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "addressable"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.2"
}, {
"fixed" : "2.10.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.9.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sporkmonger/addressable/security/advisories/GHSA-qg8x-qm93-fw27"
}, {
"type" : "WEB",
"url" : "https://github.com/sporkmonger/addressable/commit/1a46f03d6e33c19399e947b13ee5aab5c3a7c586"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sporkmonger/addressable"
}, {
"type" : "WEB",
"url" : "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-113", "CWE-93" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-01T23:55:58Z",
"nvd_published_at" : null
}
}