All vulnerabilities

RubyGems

CVE-2026-141530

Addressable pure IDNA implementation skips the nameprep bidi rule, so hosts under different domains can display identically

Severity
Low 3.1
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
2.10.0
Weakness
CWE-1007CWE-451
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
Also known as
GHSA-fccw-gx6q-mh6c
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

  • Install libidn and the idn-ruby gem, so that Addressable uses the native IDNA implementation.
  • Don't make security decisions on display_uri or to_unicode output. Compare hosts using normalized_host.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
addressableRubyGems · osv:RubyGems:addressable
  • From 2.0.0 before 2.10.0

About addressable

Total downloads (RubyGems)
1,323,514,580RubyGems, 1 Dec 2026

References