Addressable URI#hostname strips brackets from hosts that aren't IP literals
- CVE-2026-141535
- GHSA-c7j3-jq7p-v3pr
- EUVD-2026-140758
Description
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.
Text from the CVE.org record.
Recommendation
addressable project addressable
- If you run a version from 2.3.5 to before 2.10.0update to 2.10.0 or laterMinor version change: check the release notes
Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
addressable project addressable
Affected versions Fixed in from 2.3.5 to before 2.10.0 2.10.0 addressableRubyGems
Affected versions Fixed in from 2.3.5 up to 2.9.2 none stated
Product versions from the NVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.