Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister domain with invalid Punycode A-label
-
DeliveryDeliver crafted URI to victim app
-
ExploitPure-Ruby to_unicode decodes to trusted-looking host
-
Executiondisplay_uri shows spoofed host while connection uses attacker host
-
ImpactUser trusts misleading display
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires that the pure-Ruby Addressable IDNA implementation is in use - i.e. libidn and the idn-ruby gem are NOT installed (the native backend is unaffected) - AND that the consuming application renders Addressable::URI#display_uri / Addressable::IDNA.to_unicode output to users or uses that output in a trusted-name comparison. The attacker must control a domain crafted with an invalid Punycode A-label that decodes to ASCII or that fails round-trip to the same A-label (e.g. xn--google-, xn--munchen-gie). Limiting factors: a human must actually view the misleading display or the app must make a security decision on to_unicode output (UI:R); host, normalized_host, and the real connection target are never altered, so there is no redirection; and environments with the native libidn backend are not vulnerable at all. |
| Impact | This is a genuine but low-severity (CVSS 4.3) spoofing/trust-decision flaw, not a code-execution or data-theft bug. All available signals point to low real-world urgency: the CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N) shows only a Low integrity impact with no confidentiality or availability loss, and user interaction (UI:R) is required because a human must actually view the display_uri output or an application must use to_unicode output in a trust comparison. No EPSS score, KEV listing, or SSVC automatable/technical-impact signals were supplied; KEV=NO and no public exploit is referenced. The vuln.today priority of 'this_month' is consistent with a moderate-but-not-emergency library fix. A key limiting factor that tempers the network attack vector: exploitation only affects the pure-Ruby IDNA backend and only matters when software renders Addressable's decoded host to users or compares to_unicode output against a trust list - the connection target, host, and normalized_host are never affected, so there is no traffic redirection. Net: a real but narrow priority appropriate for routine patching, not incident response. |
| Exploit ScenarioDerived | An attacker registers a domain using an invalid Punycode A-label (e.g. xn--google-.example.org) that the pure-Ruby Addressable::IDNA.to_unicode wrongly decodes to ASCII ('google.example.org'). They then get a victim application to render that URL via Addressable::URI#display_uri, which shows the trusted-looking host while #host, #normalized_host, and any actual connection still use the attacker-controlled encoded host. No public exploit code is referenced, but the technique is fully described in the GHSA advisory and the fixing commit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Addressable's pure-Ruby IDNA backend decodes malformed Punycode A-labels, so a URI such as https://xn--google-.example.org/ is rendered by Addressable::URI#display_uri as google.example.org while #host, #normalized_host and the real connection target remain on the attacker-controlled encoded name. Addressable versions 2.0.0 through 2.9.0 are affected when the pure-Ruby implementation is in use (libidn and the idn-ruby gem not installed); remote, unauthenticated attackers who control a crafted domain can abuse this only if a user views the misleading display or if the application bases a trusted-name comparison on Addressable::IDNA.to_unicode output. Impact is limited to integrity (CVSS 4.3, UI:R) because the connection target is never altered and the native libidn path is unaffected; no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade the addressable gem to 2.9.1 or later, which returns invalid A-labels unchanged and aligns display_uri with normalized_host; the fix is available at https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1 and documented in GHSA-9crm-g4mf-wc5j. If an immediate upgrade is not possible, install libidn together with the idn-ruby gem so Addressable selects the unaffected native IDNA backend, accepting the trade-off of adding a native C dependency and a possibly different IDNA code path in production. Alternatively, audit consuming code so security decisions are not made on Addressable::URI#display_uri or Addressable::IDNA.to_unicode output and hosts are compared using normalized_host; this removes the trust-decision risk but does not fix the misleading display for end users, so it should be treated as a stopgap until 2.9.1 is deployed. Applications that render display_uri to users and any allow-list logic built on to_unicode should be re-checked after upgrading, since malformed xn-- labels will now be shown and compared in their original encoded form.
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
IDNA (Internationalizing Domain Names in Applications) converts Unicode host names into ASCII-compatible A-labels prefixed with xn--. RFC 3490 section 4.2, steps 6 and 7, requires a round-trip check: a decoded label must re-encode with to_ascii to exactly the same A-label, and a label that decodes to only ASCII characters is not a valid A-label. The pure-Ruby Addressable::IDNA.to_unicode implementation skipped that verification, decoding malformed labels such as xn--google- (which yields the ASCII string "google") and labels that do not convert back to themselves, including decomposed, compatibility, fullwidth, halfwidth-ideographic-full-stop and surrogate-producing cases. The root cause is improper input validation (CWE-20), with the spoofing consequence captured by CWE-1007 (insufficient visual distinction). Because Addressable::URI#display_uri derives its host from to_unicode while #host, #normalized_host and the actual connection target use the encoded form, the two representations diverge. The native libidn backend already performs the correctness check and is not affected, and neither to_ascii nor normalized_host is affected.
Know when Ruby 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:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Remote attacker controls a domain (AV:N, PR:N), but a user must view the spoofed display (UI:R); impact is limited to misleading host display, so I:L only and C:N/A:N.
Primary rating from Vendor (github).
CVSS VectorVendor: github
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.9.1, the pure-Ruby Addressable::IDNA.to_unicode implementation decodes invalid Punycode A-labels instead of returning them unchanged. Labels that decode to ASCII text or fail to convert back to the same A-label can therefore make Addressable::URI#display_uri show a trusted-looking host while host, normalized_host, and the connection target retain the attacker-controlled encoded host. A trusted-name comparison using Addressable::IDNA.to_unicode output can also treat two different hosts as the same without displaying the URI. The native libidn implementation, to_ascii, and normalized_host are unaffected. This issue is fixed in version 2.9.1.
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.
Ruby before 2.4.3 allows Net::FTP command injection. Rated high severity (CVSS 8.8), this vulnerability is remotely expl
The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injectio
Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call
Type confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Rated critical severi
Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in
Ruby code execution in Elo (npm @enspirit/elo) through 1.0.0 lets an attacker who controls Elo source gain arbitrary Rub
Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Rated critical severity (CVSS 9.8), this vulnerabilit
An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Rub
An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7
Stored XSS in Bugsink error tracking tool before 2.0.13 allows unauthenticated attackers to inject persistent scripts th
Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) w
Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and tru
EUVD-2026-124728
GHSA-9crm-g4mf-wc5j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB