RubyGems
CVE-2026-141530
Addressable pure IDNA implementation skips the nameprep bidi rule, so hosts under different domains can display identically
- Severity
- Low 3.1
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 2.10.0
- Attack
- Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
- Attacker can
- Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N- Also known as
- GHSA-fccw-gx6q-mh6c
- Sources
- OSV.dev and GitHub
Description
Nameprep, part of IDNA2003, requires a label with a right-to-left character to have no left-to-right characters, and to start and end with a right-to-left character (Section 6 of RFC 3491 and Section 6 of RFC 3454). Without the rule, two strings with the same characters in a different order can display identically. Addressable::IDNA.to_unicode in the pure-Ruby IDNA implementation, and so Addressable::URI#display_uri, doesn't apply the rule, so it decodes labels that break it. The native implementation, which uses libidn, applies the rule and isn't affected.
When a label is next to a right-to-left label, the bidirectional algorithm can display its digits or letters on the other side of the dot between them. A label that breaks the rule lets an attacker choose which side they end up on, so a host under a domain the attacker controls can display identically to a host under a different domain.
Workarounds
- Install libidn and the idn-ruby gem, so that Addressable uses the native IDNA implementation.
- Don't make security decisions on display_uri or to_unicode output. Compare hosts using normalized_host.
Affected software
| Software | Affected versions |
|---|---|
addressableRubyGems · osv:RubyGems:addressable |
|
About addressable
- Total downloads (RubyGems)
- 1,323,514,580RubyGems, 1 Dec 2026
Vulnerabilities in addressable
- In our list
- 20
- Published in the last 12 months
- 20
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-141532Addressable URI#origin= takes the host from the userinfoLow 3.7 2 Dec 2026
- CVE-2026-141536Addressable URI#request_uri returns control characters unencoded with possible HTTP request splittingLow 3.7 1 Dec 2026
- CVE-2026-141535Addressable URI#hostname strips brackets from hosts that aren't IP literalsLow 3.7 1 Dec 2026
- CVE-2026-141537Addressable URI normalization takes quadratic time on long runs of combining marksLow 3.7 1 Dec 2026
- CVE-2026-141538Addressable URI userinfo setters store delimiters raw, so the serialized URI names a different hostMedium 4.8 1 Dec 2026
- CVE-2026-141539Addressable native IDNA backend truncates a host at a pct-encoded NUL when normalizingMedium 4.8 1 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141530
- GitHub Advisory Database https://github.com/advisories/GHSA-fccw-gx6q-mh6c