CVE-2026-126348: Addressable display_uri can show misleading hosts with invalid Punycode A-labels
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-9crm-g4mf-wc5j
Summary
The pure-Ruby IDNA implementation in the Addressable gem incorrectly decodes invalid Punycode A-labels, causing Addressable::URI#display_uri to display misleading hostnames. Engineering teams using Addressable for display or trust comparisons should update their dependencies.
Who is affected
Applications using Addressable >= 2.0.0 with the pure-Ruby IDNA implementation are affected when rendering or validating URIs with invalid Punycode labels beginning with xn--. Because display_uri returns decoded forms for labels that should remain unchanged, attackers can display trusted hosts they do not actually control. This can lead to spoofing in user interfaces or bypasses in logic that compares display strings against trusted name lists.
Exploitability
The vulnerability has a CVSS base score of 4.3 (MEDIUM) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N, indicating network exploitability requiring user interaction. It carries an EPSS score of 0.003 and is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the RubyGems addressable package to version 2.9.1 or later.
- Install libidn and the idn-ruby gem to force Addressable to use the unaffected native IDNA implementation.
- Avoid making security decisions based on display_uri or to_unicode output by comparing hosts using normalized_host instead.
How to check your project
- Inspect the project's dependency manager configuration files (such as Gemfile.lock) to check if the addressable gem is within the affected version range (>= 2.0.0 and < 2.9.1).
- Audit application code to determine if Addressable::URI#display_uri or Addressable::IDNA.to_unicode are used for security decisions, UI rendering, or host validation.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | addressable |
>= 2.0.0, < 2.9.1 | 2.9.1 | bundle update addressable |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
FAQ
Which software packages are affected by CVE-2026-126348?
The RubyGems package 'addressable' is affected for versions introduced at 2.0.0 and fixed in 2.9.1.
Does the native IDNA implementation suffer from this vulnerability?
No, the native IDNA implementation-used when libidn and the idn-ruby gem are installed-is not affected.
Are to_ascii and normalized_host affected?
No, to_ascii and normalized_host are not affected by this vulnerability.
Original advisory description
References
- WEB https://github.com/sporkmonger/addressable/security/advisories/GHSA-9crm-g4mf-wc5j
- WEB https://github.com/sporkmonger/addressable/commit/b8a59cc0e03f8704f1d7c8122fc8f7ef8548362d
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-9crm-g4mf-wc5j.yml
- PACKAGE https://github.com/sporkmonger/addressable
- WEB https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
Source records: GHSA-9crm-g4mf-wc5j (OSV.dev) · EPSS by FIRST, 2026-11-26.