- Severity: LOW
- CVE: CVE-2026-141530
- Ecosystems: rubygems
- Packages: addressable
### Impact
Nameprep, part of IDNA2003, requires a label with a right-to-left character to have no left-to-right characters, and to start and end with a right-to-left character (Section 6 of RFC 3491 and Section 6 of RFC 3454). Without the rule, two strings with the same characters in a different order can display identically. `Addressable::IDNA.to_unicode` in the pure-Ruby IDNA implementation, and so `Addressable::URI#display_uri`, doesn’t apply the rule, so it decodes labels that break it. The native implementation, which uses libidn, applies the rule and isn’t affected.
When a label is next to a right-to-left label, the bidirectional algorithm can display its digits or letters on the other side of the dot between them. A label that breaks the rule lets an attacker choose which side they end up on, so a host under a domain the attacker controls can display identically to a host under a different domain. `xn--1-3mcxl0f.23.example`, under `23.example`, is displayed as `1شركة.23.example`, which in a left-to-right context renders the same as `شركة.123.example`, a host under `123.example`.
The practical risk is limited. The _target_ host has to have a right-to-left label with digits next to the dot on either side of it, such as `123` in `شركة.123.example`, and the attacker needs a domain whose name completes the target’s, such as `23.example` for a host under `123.example`. A user has to trust the displayed host. The rule applies to each label separately, so even with it, two…
Source: GitHub Security Advisories · 2026-12-01