Skip to main content

Addressable CVE-2026-126348

| EUVDEUVD-2026-124728 MEDIUM
Improper Input Validation (CWE-20)
2026-11-12 security-advisories@github.com GHSA-9crm-g4mf-wc5j
4.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register domain with invalid Punycode A-label
  2. Delivery
    Deliver crafted URI to victim app
  3. Exploit
    Pure-Ruby to_unicode decodes to trusted-looking host
  4. Execution
    display_uri shows spoofed host while connection uses attacker host
  5. Impact
    User 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

addressable 2.0.0, < 2.9.1

Affected Packages

rubygems addressable fix: 2.9.1

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

Vendor (github) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
vuln.today AI 4.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 23:03 EUVD
CVE Published
Nov 12, 2026 - 22:19 cve.org
MEDIUM 4.3

DescriptionCVE.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

EPSS Score
0.3%
Top 80% exploitable
Prevalence
High
addressable is a very widely used Ruby URI gem, default pure-Ruby backend
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor CIRCL GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Ruby

View all
CVE-2017-17405 HIGH POC
8.8 Dec 15

Ruby before 2.4.3 allows Net::FTP command injection. Rated high severity (CVSS 8.8), this vulnerability is remotely expl

CVE-2017-17790 CRITICAL POC
9.8 Dec 20

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injectio

CVE-2017-14064 CRITICAL POC
9.8 Aug 31

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

CVE-2016-2336 CRITICAL POC
9.8 Jan 06

Type confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Rated critical severi

CVE-2026-77602 CRITICAL POC
9.9 Sep 23

Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in

CVE-2026-44266 CRITICAL POC
9.8 Nov 03

Ruby code execution in Elo (npm @enspirit/elo) through 1.0.0 lets an attacker who controls Elo source gain arbitrary Rub

CVE-2016-2337 CRITICAL POC
9.8 Jan 06

Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2016-2339 CRITICAL POC
9.8 Jan 06

An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Rub

CVE-2017-9225 CRITICAL POC
9.8 May 24

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

CVE-2026-27614 CRITICAL POC
9.3 Feb 25

Stored XSS in Bugsink error tracking tool before 2.0.13 allows unauthenticated attackers to inject persistent scripts th

CVE-2017-0898 CRITICAL POC
9.1 Sep 15

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

CVE-2013-4164 MEDIUM POC
6.8 Nov 23

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

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy