All vulnerabilities

RubyGems

CVE-2026-141531

Addressable display_uri shows a deceptive label boundary for a host label that decodes to U+3002

Severity
Low 3.1
Published
1 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 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-x378-rg7m-2c49
Sources
OSV.dev and GitHub

Description

IDNA2003 requires U+3002 IDEOGRAPHIC FULL STOP, U+FF0E FULLWIDTH FULL STOP and U+FF61 HALFWIDTH IDEOGRAPHIC FULL STOP to be recognized as dots, and treats two domain names as the same whichever of these separators they use (Section 3.1 of RFC 3490). Addressable::IDNA.to_unicode, and so Addressable::URI#display_uri, decodes an A-label whose Unicode form contains U+3002, with both the pure-Ruby and the native IDNA implementations. xn--victimexample-882l.attacker.example is incorrectly displayed as victim。example.attacker.example. It should instead be rendered as itself.

With the native implementation, Addressable::URI.parse(uri.display_uri.to_s).normalized_host gives victim.example.attacker.example. An application that stores or passes on this display_uri output and later parses it again, or compares it with other domain names, gets a different host. A user reading the displayed host sees a label boundary that isn't in the real host.

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

Workarounds

  • Don't store, parse again or compare display_uri or to_unicode output. Keep the URI, and compare hosts using normalized_host.
  • Before showing display_uri.host, check it for U+3002, U+FF0E or U+FF61, and show normalized_host instead if it has one.
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