Executive summary
CVE-2026-141531 is a low-severity Unicode and IDNA consistency flaw in the Addressable Ruby gem. Affected releases can decode an A-label containing U+3002 (IDEOGRAPHIC FULL STOP) and then present it with a label boundary that was not present in the original host. A subsequent parse of that displayed value may produce a different host, creating a mismatch between what an application displays and what it later treats as the destination.
The flaw affects Addressable 2.0.0 through versions earlier than 2.10.0 and is fixed in 2.10.0. The supplied sources provide no evidence of exploitation in the wild.
Detailed analysis
Addressable is an alternative implementation of the URI functionality provided by Ruby's standard library. The vulnerable behavior involves the interaction between Addressable::IDNA.to_unicode and Addressable::URI#display_uri.
In affected versions, the following sequence can produce inconsistent results:
- An A-label is processed through
Addressable::IDNA.to_unicode.
- Its decoded Unicode form contains U+3002.
Addressable::URI#display_urirenders a boundary at the position represented by that character.
- The rendered value is parsed again, particularly with the native IDNA backend.
- The reparsed host can differ from the host obtained from the original input.
This is a display-versus-parse consistency issue rather than a memory-safety, code-execution, or conventional injection vulnerability. It matters in applications that display a host and subsequently reparse the displayed text without checking whether the host has changed.
The practical impact is narrowed by an important technical limitation: labels to the right of the U+3002 position remain unchanged. Under standard registry rules, this generally prevents the technique from impersonating a host outside the attacker's registrable domain. The exception is a registry that accepts a registrable label containing a separator-like character.
Even with that limitation, the discrepancy could affect interface presentation, copied URLs, link handling, security-policy decisions, or other workflows that assume a displayed URL and a reparsed URL represent the same host. Applications should not treat Addressable::URI#display_uri output as inherently safe for an unrestricted parse-and-display round trip.
Affected systems
- Product: Addressable Ruby gem
- Affected versions: 2.0.0 through versions earlier than 2.10.0
- Fixed version: 2.10.0
- Affected functionality:
Addressable::IDNA.to_unicodeandAddressable::URI#display_uri, particularly when an A-label decodes to a form containing U+3002
- Platform note: The supplied advisory does not identify an operating-system-specific restriction
Affected systems include Ruby applications that resolve the vulnerable Addressable release directly or through a dependency chain. Dependency lockfiles, gem specifications, vendored gems, and cached packages may retain a vulnerable version even when an application is not otherwise visible in a conventional inventory.
Mitigation
Primary remediation
Upgrade Addressable to 2.10.0 or later. This is the released fix identified by the advisory.
Operational measures
- Review
Gemfile,Gemfile.lock,*.gemspec, and vendored or cached gem inventories for Addressable versions from 2.0.0 up to but excluding 2.10.0.
- Use dependency-analysis or software-composition tools to identify vulnerable Addressable releases and associate them with CVE-2026-141531.
- Add regression tests that parse a host, render it through
Addressable::URI#display_uri, parse the result again, and compare the resulting host with the original.
- Validate security decisions against the original parsed host rather than relying solely on a rendered string.
Temporary safeguards for unpatched deployments
Where an upgrade is not immediately possible, reject or quarantine host inputs whose A-decoded form contains U+3002 at a location that does not represent a valid label boundary. A second safeguard is to compare the original parsed host with the host obtained after rendering and reparsing, rejecting any mismatch.
These compensating measures require testing against the application's legitimate internationalized-domain workflows. They reduce exposure but do not replace the fixed release.
Expert insight
The key security question is not whether U+3002 can appear in a URL, but whether the application preserves host identity across presentation and parsing. An attacker-controlled label can expose an assumption that a human-readable rendering is equivalent to the normalized URI value. The correct invariant is that the host used for navigation, origin checks, redirects, or policy enforcement must correspond to the validated host rather than a later reconstruction of displayed text.
The CVE's real-world impact remains limited because the divergence does not normally escape the attacker's registrable domain. Nevertheless, the defect reveals a meaningful class of Unicode canonicalization issue: visually plausible output can carry parsing semantics that differ from those of the source value. Systems with security-sensitive display and reparsing flows should test this invariant directly.
Actionable recommendations
- Upgrade Addressable to 2.10.0 or later.
- Inventory direct and transitive Addressable dependencies, including lockfiles, vendored gems, and cached artifacts.
- Review workflows that call
Addressable::URI#display_uriand then reparse the rendered output.
- Enforce comparison between the original parsed host and the reparsed host.
- Add parse-display-reparse regression cases involving A-labels whose Unicode form contains U+3002.
- Monitor dependency reports for CVE-2026-141531 and verify that remediation reaches deployed artifacts.