CVE-2026-141531: Addressable display_uri shows a deceptive label boundary for a host label that decodes to U+3002

Published Dec 1, 2026
·
Updated

Impact

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.tounicode, and so Addressable::URI#displayuri, 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.displayuri.tos).normalizedhost gives victim.example.attacker.example. An application that stores or passes on this displayuri 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.

However, exploitability is limited. The labels to the right of the decoded label, including the registrable domain, are displayed unchanged, so this can't make a host the attacker doesn't control appear as the URI's host. Within a domain the attacker controls, the displayed host looks like a subdomain the attacker could create anyway. The host moves to a different registrable domain only when the decoded label is itself the registrable domain, which needs a registry to accept a label with U+3002. Exploitation also needs an application that relies on the displayed form, so attack complexity is high.

Affected Versions

This vulnerability affects Addressable >= 2.0.0. It is fixed in 2.10.0, where tounicode returns a label unchanged when it decodes to any of the label separators U+3002, U+FF0E or U+FF61, with either implementation. The pure-Ruby toascii also treats U+3002 and U+FF61 as label separators in 2.10.0, as RFC 3490 requires and libidn does.

Workarounds

- Don't store, parse again or compare displayuri or tounicode output. Keep the URI, and compare hosts using normalizedhost. - Before showing displayuri.host, check it for U+3002, U+FF0E or U+FF61, and show normalizedhost instead if it has one.

Proof of Concept

ruby require "addressable/uri"

uri = Addressable::URI.parse("https://xn--victimexample-882l.attacker.example/") puts uri.displayuri.host puts Addressable::URI.parse(uri.displayuri.tos).normalizedhost

With the native implementation, affected versions print:

victim。example.attacker.example victim.example.attacker.example

With the pure-Ruby implementation, the second line is xn--victimexample-882l.attacker.example. Fixed versions print xn--victimexample-882l.attacker.example on both lines, with either implementation.

Credits

Reported by @andrewstellman.

For more information

If there are any questions or comments about this advisory: Open an issue

Other sources

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.10.0, Addressable::IDNA.tounicode decodes an A-label whose Unicode form contains U+3002, and Addressable::URI#displayuri then shows a label boundary that is absent from the real host. With the native IDNA backend, re-parsing the displayed value can produce a different host. Labels to the right remain unchanged, so the display cannot impersonate a host outside the attacker's registrable domain unless a registry accepts a separator-containing registrable label. This issue is fixed in version 2.10.0.

— MITRE

Affected Software

3 affected componentsFixes available
rubygems/addressable>=2.0.0<2.10.0
rubygems/addressable>=2.0.0<=2.9.2
2.10.0
rubygems/addressable>=2.0.0<2.10.0
2.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/addressable to a version that resolves this vulnerability.

    Fixed in 2.10.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.10.0
  3. Compensating control

    Before displaying display_uri.host, check it for U+3002, U+FF0E, or U+FF61 and show normalized_host instead if present. Keep the URI, compare hosts using normalized_host, and do not store, re-parse, or compare display_uri or to_unicode output.

Event History

Dec 1, 2026
CVE Published
via MITRE·09:15 PM
Data Sourced
via MITRE·09:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:18 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·11:49 PM
Data Sourced
via GitHub·11:49 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·11:49 PM
Affected Software

Frequently Asked Questions

1

Which Addressable versions need remediation?

Addressable versions from 2.0.0 up to, but not including, 2.10.0 are affected. The issue is fixed in version 2.10.0.

2

What conditions are needed for exploitation?

An attacker needs to supply a host containing an A-label that decodes to Unicode with U+3002 and have the application display it through Addressable::URI#display_uri. User interaction is required, as reflected by the UI:R vector.

3

Does this allow an attacker to impersonate any arbitrary external domain?

No. Labels to the right of the deceptive boundary remain unchanged, so the displayed host cannot impersonate a host outside the attacker's registrable domain unless a registry accepts a separator-containing registrable label.

4

What should be done if an application reparses displayed URIs?

Upgrade Addressable to 2.10.0. With the native IDNA backend, reparsing the displayed value can produce a different host, so applications should avoid treating a displayed URI as an authoritative value until updated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203