LowGHSA-x378-rg7m-2c49CVE-2026-141531

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

Published 1 Dec 2026 · Updated 2 Dec 2026

Affected package

addressableRubyGems
Affected
>=2.0.0 <2.10.0
Fixed in
2.10.0
Update to the fixed version for your release line, for example:bundle update --conservative addressable # Gemfile: '>= 2.10.0'

We confirm your address first. See our privacy policy.

Which addressable does your project really install?

Drop your Gemfile.lock hereWe find the exact addressable version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads Gemfile.

Public repo?

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Details

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.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.

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 to_unicode 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 to_ascii 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 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.

Proof of Concept

require "addressable/uri"

uri = Addressable::URI.parse("https://xn--victimexample-882l.attacker.example/")
puts uri.display_uri.host
puts Addressable::URI.parse(uri.display_uri.to_s).normalized_host

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:

Is GHSA-x378-rg7m-2c49 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected addressable, and gives you the command that fixes it.

More advisories for addressable

  • LowCVE-2026-141532Addressable URI#origin= takes the host from the userinfo · 2 Dec 2026
  • LowCVE-2026-141536Addressable URI#request_uri returns control characters unencoded with possible HTTP request splitting · 1 Dec 2026
  • LowCVE-2026-141535Addressable URI#hostname strips brackets from hosts that aren't IP literals · 1 Dec 2026
  • LowCVE-2026-141537Addressable URI normalization takes quadratic time on long runs of combining marks · 1 Dec 2026
  • MediumCVE-2026-141538Addressable URI userinfo setters store delimiters raw, so the serialized URI names a different host · 1 Dec 2026
  • MediumCVE-2026-141539Addressable native IDNA backend truncates a host at a pct-encoded NUL when normalizing · 1 Dec 2026
All 22 advisories for addressable

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.