CVE-2026-141535
Addressable URI#hostname strips brackets from hosts that aren't IP literals
- Severity
- low CVSS 3.7 (v3.1)
- Affects
- addressable · sporkmonger
- Weakness
- CWE-20: Improper Input Validation
- Published
- 1 December 2026 by GitHub_M
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.3.5 until 2.10.0, Addressable accepts bracketed non-IP hosts that are not IPv6 or IPvFuture literals, while Addressable::URI#hostname removes those brackets. Code that checks Addressable::URI#host but connects with Addressable::URI#hostname, including through Net::HTTP, can permit an unresolved bracketed value and then connect to the corresponding loopback or internal hostname. This issue is fixed in version 2.10.0.
Our coverage
We have not written about this one. Know why it matters? Send a tip.