Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted userinfo value to app
-
DeliveryApp assigns value via URI#user=/#userinfo=
-
ExploitHost validation passes on URI object
-
ExecutionApp serializes with #to_s, not normalize
-
PersistRequest sent to attacker-controlled host
-
ImpactTrusted headers or token disclosed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires a specific application pattern, not merely network access: the consuming Ruby application must (1) place an attacker-influenced value into the userinfo of an Addressable::URI built for a trusted host via #user=, #password=, #userinfo=, the matching URI.new/authority= options; (2) validate trust by checking the URI object's #host or #origin (which still report the intended host); and (3) serialize with #to_s and hand the string to an HTTP client. Limiting factors: attack complexity is high (AC:H) because this exact build-validate-serialize sequence must be present; on version 2.9.2 the injected text must follow a colon (e.g. 'u:x@evil.example/') because #userinfo= there ignores a value without a colon; and the flaw is fully avoided if the application uses uri.normalize.to_s, pct-encodes userinfo before assignment, or re-parses the final string's host. The vendor states upgrading to 2.10.0 (which raises InvalidURIError for these delimiters) is the fix. |
| Impact | This is a genuine but conditional, moderate-severity issue rather than a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N, base 4.8) captures it well: network-reachable and requiring no authentication to the vulnerable application, but with high attack complexity because exploitation depends on the application following a specific, non-universal coding pattern. The vuln.today Decision label is this_month, consistent with a real-but-not-urgent priority. No EPSS score, no CISA KEV listing, and no proof-of-concept flag were provided, so there is no evidence of active exploitation or automated weaponization - the signals are internally consistent (moderate CVSS, this_month decision, no exploitation signals) rather than conflicting. The AC:H rating is explicitly supported by the GHSA advisory, which states the attacker needs the application to build URIs by placing untrusted input into userinfo, validate the object's host/origin, and then send the serialized string - so this is not a flaw in Addressable alone but in how a consuming application uses it. Impact is bounded to low confidentiality and low integrity (leakage of headers/body such as an API token to an attacker-chosen host, and requests misdirected there); there is no availability impact. Treat as a dependency-bump item to schedule this month, not a drop-everything patch. |
| Exploit ScenarioDerived | A Ruby application takes an untrusted value (e.g. a username or token component), assigns it to Addressable::URI#user=, #password=, or #userinfo= on a URI whose host is a trusted internal API, confirms the object's #host or #origin still points at the trusted service, then passes #to_s to an HTTP client. Because the setters store '/', '?', or '#' without encoding, an input like 'alice@evil.example/' serializes to 'https://alice@evil.example/@api.example.com/…', which Addressable and Ruby's URI both read as the host evil.example, so the request - including any API token in its headers or body - is sent to the attacker's host. No public exploit identified at time of analysis; the mechanism is documented in the GHSA advisory but exploitation requires the application to construct URIs this way (AC:H). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Addressable, the Ruby URI library, fails to reject or percent-encode host-changing delimiters in the userinfo component: from 2.0.0 through 2.9.2, #user=, #password=, #userinfo=, #authority= and the matching URI.new options store values containing '/', '?', '#', '[', ']' or '\' raw, so #to_s serializes a URI whose host differs from the one #host and #origin report. An application that assigns attacker-influenced data into the userinfo of a URI for a trusted host, authorizes the request by checking #host or #origin, and then hands the serialized string to an HTTP client can disclose headers or request bodies - such as an API token - to an attacker-chosen host. The flaw is rated CVSS 4.8 with high attack complexity (AC:H) because that build-validate-serialize pattern must be present, no public exploit has been identified at time of analysis, and the vendor has released a fix in 2.10.0.
RemediationAI
Upgrade the Addressable gem to version 2.10.0, the vendor-released fix (commit https://github.com/sporkmonger/addressable/commit/651722f370f679ce4cdf64ed1d2c9527d5e6958b, release https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0); from that version, #user=, #password=, #userinfo=, #authority=, URI.new and URI.parse raise Addressable::URI::InvalidURIError for '/', '?', '#', '[', ']' or '\' in the user or password, and for ':' in the user. Code that previously assigned such characters - for example a password beginning with '#' or a user containing a colon - must now percent-encode the value first, so expect and test for these new exceptions. Where upgrading is not immediately possible, three vendor-documented workarounds close the gap: serialize with uri.normalize.to_s instead of uri.to_s, which encodes the delimiters; percent-encode userinfo values before assignment using Addressable::URI.encode_component(value, Addressable::URI::CharacterClasses::UNRESERVED); and validate the host of the final string with Addressable::URI.parse(uri.to_s).host rather than the host of the object. Each workaround must be applied at every call site that builds a URI from untrusted input, since a single missed path leaves the disclosure open.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in rubygems
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Addressable is an alternative implementation of Ruby's stdlib URI class, and this is a component-injection problem (CWE-74) that additionally reflects an interpretation conflict (CWE-436) between the library's object model and the parsers that later consume its output. The URI object itself remains self-consistent: #host and #origin report the host the application set, because the component is stored exactly as assigned. The mismatch appears only at serialization time, where #to_s joins components with their delimiters without encoding them; Addressable and Ruby's URI both then read the text after the injected delimiter as the authority, so 'alice@evil.example/' as a user yields 'https://alice@evil.example/@api.example.com/…'. Variants behave differently: a '[' or ']' makes the serialized URI fail to parse, a ':' in the user shifts the remainder into the password, and a '\' terminates the userinfo for browsers, which treat it as '/'. #normalize does encode these characters correctly, which is why normalize.to_s is an effective workaround. On 2.9.2, #userinfo= ignores a value without a colon, so the injected text must follow one (e.g. 'u:x@evil.example/'). The trigger requires the consuming application to build URIs this way; it is not reachable through network input alone.
Know when Addressable gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
AC:H because exploitation depends on the application's specific build-validate-serialize pattern; PR:N/UI:N as untrusted input suffices; C:L/I:L for header/token leakage and request misdirection, A:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.10.0, Addressable::URI#user=, #password=, #userinfo=, and matching Addressable::URI.new options store userinfo values without rejecting or encoding host-changing delimiters. Values containing /, ?, or
can end userinfo early when Addressable::URI#to_s serializes the URI. An application that validates the URI object but sends the serialized string can disclose headers or request bodies to an attacker-controlled host. This issue is fixed in version 2.10.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Addressable
View allRegular expression denial of service (ReDoS) in the Addressable Ruby library versions 2.3.0 through 2.8.x allows unauthe
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. Rated hi
Regular expression denial of service in the Addressable Ruby gem (2.3.0 through 2.9.2) allows crafted URIs to force exce
Polynomial backtracking in Addressable's URI template matching lets a crafted URI drive Template#match or Template#extra
Polynomial-time regular expression backtracking in the Addressable Ruby gem's URI template matcher (Template#match and T
Polynomial-time regular-expression backtracking in the Addressable Ruby gem (2.9.1 through 2.9.2) lets unauthenticated r
Hostname filtering bypass in the Addressable Ruby URI library (versions 2.2.5 through 2.9.2, fixed in 2.10.0) causes a p
Denial of service in the Addressable Ruby gem 2.9.1 through 2.9.x lets unauthenticated remote attackers consume excessiv
Addressable, the Ruby URI and RFC 6570 template library, takes the variable name in an unexploded ';', '?', or '&' templ
SSRF filter bypass in the Addressable Ruby gem (2.3.5 through 2.9.2) lets an attacker-supplied URL pass a destination ch
Quadratic-time Unicode normalization in the Ruby Addressable gem (2.0.0 through 2.9.2) lets remote attackers burn CPU on
Addressable's URI#request_uri (versions 2.1.2 through 2.9.2) returns the path and query verbatim, so stored control char
EUVD-2026-140767
GHSA-qrq6-rcpx-pmm6
NVD
CVE.org
EPSS
Exploit-DB