CVE-2026-126349: Addressable display_uri can show misleading hosts containing bidi and invisible characters
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-539f-xcgw-2gjg
Summary
The Addressable Ruby gem fails to sanitize Punycode labels in the display_uri method, allowing malicious actors to display misleading hostnames using invisible or bidirectional characters. Developers using Addressable to present URI components to users should upgrade to version 2.9.1.
Who is affected
The vulnerability affects applications that use Addressable::URI#display_uri to render hostnames in user-facing interfaces, such as link previews or administrative consoles. When triggered, the library may display a host that appears identical to a trusted domain or presents reordered characters, potentially facilitating phishing or social engineering. Parsing logic, normalized hosts, and actual network connections remain unaffected.
Exploitability
The vulnerability carries a CVSS 3.1 base score of 3.1, indicating low severity, with an attack vector requiring network access and user interaction. With an EPSS score of 0.002, the probability of exploit is low, and it is not currently tracked by CISA as a known exploited vulnerability.
Remediation
- Upgrade the Addressable gem to version 2.9.1 or later.
- If upgrading is not immediately possible, implement logic to scan displayed hosts for bidirectional or invisible characters using a regex like /[\p{Cc}\p{Cf}\p{Default_Ignorable_Code_Point}]/ and fall back to the normalized_host.
- Consider installing libidn and the idn-ruby gem to utilize the native IDNA implementation as a partial mitigation.
How to check your project
- Check the Gemfile.lock file for 'addressable' versions between 2.0.0 and 2.9.0.
- Run 'bundle list | grep addressable' to verify the currently installed version in your Ruby environment.
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:H/PR:N/UI:R/S:U/C:N/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
FAQ
Does this flaw affect my application's backend network security?
No. The vulnerability is restricted to the presentation layer (display_uri). Actual URI parsing, normalization, and network connections remain secure.
Is this vulnerability being actively exploited?
No. CISA has not listed this as a Known Exploited Vulnerability (KEV), and the current EPSS score is very low.
Why does the native IDNA implementation behave differently?
The native implementation relies on libidn, which inherently rejects most problematic characters, though it remains vulnerable to certain characters added to Unicode after version 3.2.
Original advisory description
References
- WEB https://github.com/sporkmonger/addressable/security/advisories/GHSA-539f-xcgw-2gjg
- WEB https://github.com/sporkmonger/addressable/commit/60455d32bb59fda2585a0e1865a9fcb21e8e55b1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-539f-xcgw-2gjg.yml
- PACKAGE https://github.com/sporkmonger/addressable
- WEB https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
Source records: GHSA-539f-xcgw-2gjg (OSV.dev) · EPSS by FIRST, 2026-11-26.