CVE-2026-126349
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library.
Impact
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, Addressable::IDNA.to_unicode can decode Punycode labels that contain bidirectional controls, zero-width characters, control characters, or other default-ignorable format characters. Addressable::URI#display_uri can consequently show a reordered or visually indistinguishable hostname even though host, normalized_host, and network connections use the original encoded hostname. The pure-Ruby backend accepts the full prohibited set, while the native libidn backend is affected from 2.5.2 for characters added after Unicode 3.2. This issue is fixed in version 2.9.1.
An attacker can exploit this over the network, without logging in, but a user has to do something, such as open a file or a link. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data or systems being changed.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | addressable | >= 2.0.0, < 2.9.1 | 2.9.1 |
Affected products · Sporkmonger
| Product | Affected versions |
|---|---|
| Addressable | from 2.0.0, before 2.9.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/sporkmonger/addressable/security/advisories/GHSA-539f-xcgw-2gjg
- https://github.com/sporkmonger/addressable/commit/60455d32bb59fda2585a0e1865a9fcb21e8e55b1
- https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
- https://github.com/advisories/GHSA-539f-xcgw-2gjg
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-539f-xcgw-2gjg.yml