Dev.to Security 🔐 Cybersecurity 👁 2 📖 2 min read

CVE-2026-141530: CVE-2026-141530: Domain Spoofing via Missing Bidirectional Validation in Ruby Addressable Pure IDNA…

CVE-2026-141530: Domain Spoofing via Missing Bidirectional Validation in Ruby Addressable Pure IDNA Implementation Vulnerability ID: CVE-2026-141530 CVSS Score: 3.1 Published: 2026-12-01 CVE-2026-141530 is a user in

CVE-2026-141530: Domain Spoofing via Missing Bidirectional Validation in Ruby Addressable Pure IDNA Implementation

Vulnerability ID: CVE-2026-141530
CVSS Score: 3.1
Published: 2026-12-01

CVE-2026-141530 is a user interface misrepresentation vulnerability in the pure-Ruby Internationalized Domain Names in Applications (IDNA) implementation of the Addressable gem (versions 2.0.0 through 2.9.2). The library omits enforcement of the RFC 3454 Section 6 bidirectional rule when converting between Punycode A-labels and Unicode U-labels. Consequently, calling Addressable::IDNA.to_unicode or Addressable::URI#display_uri decodes malformed Punycode labels containing mixed directional categories and trailing digits. When rendered in a standard left-to-right display context, the Unicode Bidirectional Algorithm visually reorders digits across domain label separators, enabling an attacker controlling a complementary domain to spoof a target hostname.

TL;DR

Addressable versions 2.0.0 through 2.9.2 fail to enforce RFC 3454 bidirectional character rules in the pure-Ruby IDNA backend. This allows attackers to construct Punycode domain labels that visually reorder across dot separators in left-to-right displays, causing two distinct domains to render identically via display_uri.

⚠️ Exploit Status: POC

Technical Details

  • CVE ID: CVE-2026-141530 (GHSA-fccw-gx6q-mh6c)
  • CWE Classification: CWE-451 / CWE-1007 (UI Misrepresentation / Homoglyph Spoofing)
  • CVSS v3.1 Score: 3.1 Low (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N)
  • Affected Component: addressable RubyGem (2.0.0 - 2.9.2) via Addressable::IDNA::Pure
  • Patched Version: addressable 2.10.0
  • Attack Vector: Network (Crafted Punycode URI with mixed RTL and numeric characters)
  • Exploit Status: Proof-of-Concept (PoC) Published
  • CISA KEV Status: Not Listed

Affected Systems

  • Addressable RubyGem (versions 2.0.0 through 2.9.2 using Addressable::IDNA::Pure)
  • addressable: >= 2.0.0, <= 2.9.2 (Fixed in: 2.10.0)

Code Analysis

Commit: f441937

Merge commit from fork: Keep labels that decode to a label separator as A-labels; Apply the bidi rule in the pure to_unicode; Reject a label that breaks the bidi rule in pure-Ruby to_ascii

def self.bidi_rule_broken?(label)
  return false unless label =~ RAND_AL_CAT
  label =~ L_CAT || label[0] !~ RAND_AL_CAT || label[-1] !~ RAND_AL_CAT
end
private_class_method :bidi_rule_broken?

Exploit Details

  • GitHub Security Advisory: Official advisory containing proof-of-concept Ruby code demonstrating bidirectional domain spoofing via Addressable::URI#display_uri.

Mitigation Strategies

  • Upgrade the addressable RubyGem to version 2.10.0 or newer to enforce RFC 3454 bidirectional rules in the pure-Ruby IDNA backend.
  • Install the native libidn system library and the idn-ruby gem so Addressable uses the C-based IDNA backend instead of the pure-Ruby fallback.
  • Ensure all security decisions, domain allowlisting, and origin validations operate on canonical ASCII/Punycode hostnames (uri.normalized_host) rather than display_uri.

Remediation Steps:

  1. Update your Gemfile to specify gem 'addressable', '>= 2.10.0'.
  2. Run 'bundle update addressable' to update Gemfile.lock with version 2.10.0 or later.
  3. Verify the installed version by running 'bundle info addressable' and restart all affected Ruby application processes.
  4. If unable to upgrade immediately, install system libidn development packages and add gem 'idn-ruby' to the Gemfile.

References

Read the full report for CVE-2026-141530 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.