CVE-2026-126348
Addressable display_uri can show misleading hosts with invalid Punycode A-labels
Overview
Description
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.
Source: OX vulnerability database
Severity
4.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Weakness: CWE-20, CWE-1007
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | addressable | >=2.0.0, <2.9.1 | 2.9.1 |
Open a package to see all its vulnerabilities.
Operating systems · 15 fixes
chainguard 1 release · 10 packages
| Release | Package | Fixed in |
|---|---|---|
| ruby3-4-fluentd-kubernetes-daemonset-1-19 +1 | 1.19.4.1.2-r2 | |
| ruby3-3-fluentd-kubernetes-daemonset-1-19 | 1.19.4.1.2-r3 | |
| pghero +1 | 3.8.0-r15 | |
| kube-logging-operator | 6.9.0-r13 | |
| logstash-8-19 | 8.19.25-r2 | |
| logstash-9-3 | 9.3.8-r4 |
4 more rows
wolfi 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| ruby3-4-fluentd-kubernetes-daemonset-1-19 +1 | 1.19.4.1.2-r2 | |
| ruby3-3-fluentd-kubernetes-daemonset-1-19 | 1.19.4.1.2-r3 | |
| kube-logging-operator | 6.9.0-r13 | |
| logstash-9-3 | 9.3.8-r4 | |
| logstash-9-4 | 9.4.9-r3 |
References
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-9crm-g4mf-wc5j.yml
- github.com https://github.com/sporkmonger/addressable
- github.com https://github.com/sporkmonger/addressable/commit/b8a59cc0e03f8704f1d7c8122fc8f7ef8548362d
- github.com https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
- github.com https://github.com/sporkmonger/addressable/security/advisories/GHSA-9crm-g4mf-wc5j
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.