Insufficient Visual Distinction of Homoglyphs Presented to User Affecting addressable package, versions >=2.0.0, <2.9.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-ADDRESSABLE-22840126
  • published24 Nov 2026
  • disclosed12 Nov 2026
  • creditandrewstellman

Introduced: 12 Nov 2026

NewCVE-2026-126349  (opens in a new tab)
CWE-1007  (opens in a new tab)
CWE-176  (opens in a new tab)
CWE-451  (opens in a new tab)

How to fix?

Upgrade addressable to version 2.9.1 or higher.

Overview

addressable is an is an alternative implementation to the URI implementation that is part of Ruby's standard library.

Affected versions of this package are vulnerable to Insufficient Visual Distinction of Homoglyphs Presented to User via the to_unicode function in Addressable::IDNA. An attacker can make a malicious domain appear to be a trusted host by supplying a URI with a Punycode label that decodes to bidirectional controls or invisible characters, when an application displays Addressable::URI#display_uri to users. The misleading appearance affects only the displayed form; URI parsing and the host used for connections are unaffected, though users can be misled into trusting or following the malicious link.

Notes

  • The character set depends on the IDNA backend: the pure-Ruby implementation decodes the broader set, while installing both libidn and idn-ruby selects the native implementation, where libidn rejects most such characters but still allows some added after Unicode 3.2, including bidi isolates U+2066–U+2069.

Workarounds

  • Install libidn and the idn-ruby gem so Addressable uses the native IDNA implementation; this reduces exposure to misleading labels, though characters added after Unicode 3.2 may still be accepted.
  • Check displayed hosts for bidirectional and invisible characters (for example, /[\p{Cc}\p{Cf}\p{Default_Ignorable_Code_Point}]/) and display normalized_host instead when any are present; this prevents those characters from misleading users about the host.

CVSS Base Scores

version 4.0
version 3.1