CVE-2026-141535 PUBLISHED

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

Assigner: GitHub_M
Reserved: 01.12.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS Score: 3.7

Product Status

Vendor sporkmonger
Product addressable
Versions
  • Version >= 2.3.5, < 2.10.0 is affected

References

Problem Types

  • CWE-20: Improper Input Validation CWE
  • CWE-436: Interpretation Conflict CWE
  • CWE-918: Server-Side Request Forgery CWE