Addressable display_uri can show misleading hosts with invalid Punycode A-labels

State
Published
Severity
4.3 Medium
Published
Nov 12, 2026
Updated
Nov 13, 2026
Reserved
Nov 10, 2026

Read the record on cve.org

Description

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.9.1, the pure-Ruby Addressable::IDNA.to_unicode implementation decodes invalid Punycode A-labels instead of returning them unchanged. Labels that decode to ASCII text or fail to convert back to the same A-label can therefore make Addressable::URI#display_uri show a trusted-looking host while host, normalized_host, and the connection target retain the attacker-controlled encoded host. A trusted-name comparison using Addressable::IDNA.to_unicode output can also treat two different hosts as the same without displaying the URI. The native libidn implementation, to_ascii, and normalized_host are unaffected. This issue is fixed in version 2.9.1.

ProductVersions
addressable sporkmonger>= 2.0.0, < 2.9.1 Affected

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-1007 Insufficient Visual Distinction of Homoglyphs Presented to User

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.