Skip to content
Low 3.7

Addressable URI#hostname strips brackets from hosts that aren't IP literals

CVE-2026-141535 First seen on SecPulse

Affected packages

PackageAffected → Fixed
sporkmongeraddressable —
rubygemsaddressable
≥ 2.3.5, < 2.10.0→ 2.10.0
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details