Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit URL with pct-encoded NUL in host
-
DeliveryApp denylist checks uri.host (sees full string)
-
Exploitlibidn truncates host at NUL during normalize
-
ExecutionRequest sent to shortened internal host
-
ImpactReach host intended to be blocked
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Metacharacter neutralization
|
| Exploitation Conditions | Three specific conditions must all hold: (1) the idn-ruby gem is installed, so Addressable selects the native IDNA backend - the pure-Ruby backend used when idn-ruby is absent is not affected; (2) the affected version range Addressable >= 2.2.5 and < 2.10.0 is in use; and (3) the consuming application mixes host forms, performing its security check on one representation (#host or #to_s, which keep the host as written) while acting on another (#normalize, #normalized_host, #normalized_authority, #normalized_site, #origin, #display_uri, or #== comparison, which return the NUL-truncated host). The attacker must also be able to supply a URL containing a pct-encoded NUL (%00) in the host label. Limiting factors: an application that consistently uses a single host form is not vulnerable, and the maximum effect is reaching a host that a filter intended to block. |
| Impact | This is a genuine but conditional access-control bypass rather than a high-urgency emergency. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N, base 4.8 Medium) aligns well with the mechanism: network-reachable (AV:N) and unauthenticated (PR:N), but high complexity (AC:H) because exploitation depends on the application itself mixing two host representations AND the idn-ruby gem being installed to select the native IDNA backend. No EPSS score, KEV listing, or SSVC automatable/technical-impact fields were supplied, so exploitation-probability and automation signals cannot be weighed. The vuln.today decision label is 'this_month' (not act_now or emergency), consistent with a medium-severity library flaw. No public exploit code or PoC reference is present in the input - only the vendor advisory, fix commit, and release are referenced. The limited C:L/I:L impact reflects that the payoff is a denylist/SSRF-filter bypass in a vulnerable consuming application, not direct code execution or data compromise. Overall: a real defense-in-depth concern for Ruby apps that use Addressable for host allow/deny decisions, but not a mass-exploitation priority on the available data. |
| Exploit ScenarioDerived | An application uses Addressable to enforce an SSRF denylist, checking uri.host against blocked internal hosts, but then issues the outbound request using uri.normalize or uri.origin. With idn-ruby installed, an attacker supplies a URL such as http://internal.example%00x/; the denylist sees 'internal.example%00x' and allows it, while the normalized request is sent to 'internal.example'. No public exploit code is identified at time of analysis, though the fix commit includes test cases demonstrating the truncation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Hostname filtering bypass in the Addressable Ruby URI library (versions 2.2.5 through 2.9.2, fixed in 2.10.0) causes a percent-encoded NUL in a host label to be silently truncated when the URI is normalized. When the idn-ruby gem is installed, Addressable uses the native IDNA backend, whose libidn calls treat the decoded NUL as end-of-string, so 'http://internal.example%00x/' normalizes to 'http://internal.example/'. An application that validates the host using one representation (#host or #to_s, which keep the host as written) but builds the outbound request from another (#normalize, #normalized_host, #origin, #display_uri, or #==) can be induced to send a request to a shortened host it intended to block; the maximum impact is reaching a host a filter meant to deny. No public exploit identified at time of analysis, and the vendor notes the pure-Ruby IDNA backend (used when idn-ruby is absent) is not affected.
RemediationAI
Upgrade the addressable gem to 2.10.0 (release tag https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0), which contains the upstream fix commit 19da0e8a2f4aed2328b25cbde83d7053890d8972; vendor-released patch: 2.10.0. Where upgrading is not immediately possible, the vendor documents three workarounds: perform the security check on the same host representation that is used to make the request (if the request is built from uri.normalize or uri.origin, check uri.normalize.host rather than uri.host), which closes the mismatch but requires auditing every call site that mixes forms; reject any URI whose host contains %00, which blocks the attack input but may break legitimate inputs containing an encoded NUL; or remove the idn-ruby gem so Addressable falls back to the pure-Ruby IDNA backend, at the cost of losing libidn-backed IDNA conversion performance/behavior. Applications that consistently use a single host representation throughout are not vulnerable.
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 it performs IDNA (internationalized domain name) conversion through one of two backends: a pure-Ruby implementation, or a native backend that binds the libidn C library via the idn-ruby gem. The root cause class is CWE-158 (Improper Neutralization of Null Byte or NUL Character), with the advisory also classifying it as CWE-626 (Null Byte Interaction Error). libidn operates on NUL-terminated C strings; when Addressable percent-decodes a host label and passes it to the native backend's to_ascii/to_unicode/punycode_encode/punycode_decode paths, an embedded NUL causes libidn to read only the text before it, dropping the rest of the label. The result is a representation mismatch inside the same object: #host and #to_s preserve the host as written, while #normalize, #normalized_host, #normalized_authority, #normalized_site, #origin and #display_uri return the truncated host, and #== considers the two forms equal. The fix in 2.10.0 makes the native backend leave a label containing a NUL unchanged (matching the pure-Ruby backend) and makes punycode_encode/punycode_decode raise IDN::Punycode::PunycodeError for strings containing a NUL rather than converting only the prefix.
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
Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because exploitation requires idn-ruby installed and the app mixing #host with a normalized form; impact is a filter bypass (C:L/I:L, 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.2.5 until 2.10.0, With the native IDNA backend, Addressable::URI#normalized_host passes a percent-encoded NUL after decoding to libidn, which truncates the remainder of the label. An application that checks the original host but uses normalize, origin, display_uri, or normalized_host can be made to send a request to a shortened host that it intended to block. 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
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
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-140768
GHSA-mrrj-5mhw-rcf2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB