Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit URL with bracketed host [127.0.0.1]
-
Delivery#host check sees non-resolving bracketed value
-
ExploitSSRF filter permits request
-
Execution#hostname strips brackets on connect
-
PersistNet::HTTP reaches loopback/internal service
-
ImpactInternal response disclosed to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Not a default-configuration remote compromise. Exploitation requires a consuming application that (1) parses an untrusted URL with Addressable, (2) performs its SSRF/destination check against Addressable::URI#host and permits a host even when it does not resolve, and (3) actually connects using Addressable::URI#hostname, for example by passing the Addressable URI to Net::HTTP. The limiting factors are significant: an application whose SSRF check treats non-resolving names as blocked is not affected, valid bracketed IPv6 literals such as [::1] are not affected (IPAddr accepts them), and the flaw only exists in Addressable versions >= 2.3.5 and <= 2.9.2 (where #hostname strips brackets). The vendor's workarounds are to check the same value used to connect (prefer #hostname for SSRF checks), or reject any URI whose #host starts with '[' unless IPAddr.new(uri.hostname) is an IPv6 address; updating to 2.10.0, which raises InvalidURIError for non-IP-literal bracketed hosts, is the complete fix. |
| Impact | This is a genuinely low-priority issue by every available signal, and they are consistent rather than conflicting. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N, base 3.7) rates it Low: network-reachable and unauthenticated, but with high attack complexity and only limited confidentiality impact. The vuln.today decision label is 'monitor', the lowest urgency tier, and it is not listed in CISA KEV, so there is no confirmed active exploitation. No EPSS score was supplied, so exploitation probability cannot be quantified from this data. The GHSA advisory includes a working proof-of-concept demonstration, but this is a library filter-bypass primitive, not a self-contained remote exploit. The AC:H rating is well-justified and not attacker-controlled: exploitation depends entirely on a specific application coding pattern (checking Addressable::URI#host while connecting via #hostname, and permitting hosts that do not resolve) rather than on anything the attacker can force. Net assessment: a real but narrow SSRF-filter-bypass weakness that matters only to applications with that exact pattern - not a widespread emergency. |
| Exploit ScenarioDerived | An application uses Addressable to parse an attacker-supplied URL, blocks internal destinations by inspecting URI#host, but then performs the outbound request with URI#hostname (for example by handing the URI to Net::HTTP). An attacker submits a URL such as http://[127.0.0.1]/ or http://[localhost]/: the bracketed value passes the #host-based SSRF check (it does not resolve) yet #hostname strips the brackets so the request actually reaches loopback or an internal host. A public proof-of-concept demonstrating this bracket-stripping bypass is published in the GHSA advisory, though high attack complexity applies because the target app must have the vulnerable check-vs-connect mismatch. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
SSRF filter bypass in the Addressable Ruby gem (2.3.5 through 2.9.2) lets an attacker-supplied URL pass a destination check yet still reach loopback or internal hosts. Addressable::URI.parse accepts brackets around values that are not IPv6 or IPvFuture literals - http://[127.0.0.1]/ or http://[localhost]/ - and #hostname strips those brackets while #host retains them, so a consuming application that validates #host but connects through Net::HTTP with #hostname checks one name and connects to another. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N, 3.7) reflects that this only bites applications using that specific check-then-connect pattern and permitting non-resolving hosts; there is no CISA KEV entry and a public proof-of-concept reference exists in the vendor advisory, though it is not verified as working exploit code, and the vendor's own priority signal is monitor.
RemediationAI
Upgrade the Ruby gem to Addressable 2.10.0 (release tag addressable-2.10.0, fix commit b56b49d54f87887fa8f0e42216618eaa9af273de), which makes URI.parse, URI.new and the host setters raise InvalidURIError when brackets enclose anything other than an IPv6 address or IPvFuture literal; note the side effect that previously accepted inputs such as http://[127.0.0.1]/ or http://example[.]com/ will now raise, so applications that relied on parsing such strings need error handling. If upgrading is deferred, the vendor workarounds are to perform the SSRF check on the exact value used to connect - generally prefer #hostname over #host and never check #host then connect to #hostname - or to reject any URI whose #host starts with '[' unless IPAddr.new(uri.hostname) is an IPv6 address, which preserves legitimate bracketed IPv6 literals such as [::1] but must be applied consistently across every code path that fetches URLs. Applications whose destination check treats non-resolving names as blocked are not affected and need no change. Details are in the vendor advisory at https://github.com/sporkmonger/addressable/security/advisories/GHSA-c7j3-jq7p-v3pr.
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 a pure-Ruby alternative to the standard library URI implementation, and the root cause is improper input validation (CWE-20) over RFC 3986 §3.2.2, which permits square brackets in a host only as delimiters of an IP-literal: an IPv6 address or an IPvFuture literal (v<hex>.…). Addressable >= 2.3.5 - the release where #hostname began stripping brackets from any bracketed host - did not enforce that restriction, so a registered name or IPv4 address in brackets was stored verbatim in #host and returned unbracketed by #hostname. This is a parser differential / interpretation conflict (CWE-436) that becomes a server-side request forgery primitive (CWE-918) in downstream consumers: the bracketed form does not resolve (IPAddr.new("[127.0.0.1]") raises and Resolv returns no addresses), so a resolver-based SSRF check sees an unresolvable name, while the stripped form resolves normally at connection time. Valid bracketed IPv6 literals such as [::1] are unaffected because IPAddr accepts their bracketed form. The fix commit b56b49d54f87887fa8f0e42216618eaa9af273de adds an ip_literal?/ipv6_address? validator that recognizes RFC 3986 IPV6address, IPv4-embedded and IPvFuture forms, raises InvalidURIError for any other bracketed host in URI.parse, MRI.new and the host setters, and introduces a HOST_WITHOUT_BRACKETS normalization class so pct-encoded brackets in registered names stay encoded instead of being decoded into a malformed IP-literal.
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:N/A:N
Network-reachable and unauthenticated (AV:N/PR:N/UI:N); AC:H because it depends on the app checking #host but connecting via #hostname (not attacker-controlled); limited internal disclosure (C:L), no integrity/availability impact.
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.3.5 until 2.10.0, Addressable accepts bracketed non-IP hosts that are not IPv6 or IPvFuture literals, while Addressable::URI#hostname removes those brackets. Code that checks Addressable::URI#host but connects with Addressable::URI#hostname, including through Net::HTTP, can permit an unresolved bracketed value and then connect to the corresponding loopback or internal hostname. 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
Addressable, the Ruby URI library, fails to reject or percent-encode host-changing delimiters in the userinfo component:
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
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-140758
GHSA-c7j3-jq7p-v3pr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB