Skip to main content
VulnerabilityPublished

CVE-2026-141535: Addressable URI#hostname strips brackets from hosts that aren't IP literals

Affects addressableSource GCVE Database

0
Compare
Authoritative record:CVE-2026-141535· Low 3.7

Not known to be exploited · CVSS 3.7 Low : upgrade to 2.10.0 when convenient.

Data as of 2 Dec 2026, 03:00 UTC

CVSS 3.1 base score
3.7Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.13.7
Patch
Available – fixed in 2.10.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.

What to do

Upgrade addressable to 2.10.0.

Affected software

ProductAffectedFixed in
RubyGemsaddressableAffected
  • >=2.3.5 <2.10.0
Fixed in
  • 2.10.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Addressable to version 2.10.0 or later, where invalid bracketed hosts cause an InvalidURIError and are rejected. Alternatively, ensure that host validation and connection use the same value, preferably #hostname, and reject URIs with bracketed hosts unless they are valid IPv6 literals as verified by IPAddr. Avoid checking #host but connecting to #hostname to prevent mismatches.

Description

Addressable URI versions from 2.3.5 up to but not including 2.10.0 improperly allow bracketed hosts that are not valid IPv6 or IPvFuture literals. This causes a discrepancy between the #host and #hostname methods, where #hostname strips brackets and may resolve to a different address than #host. This can lead to server-side request forgery (SSRF) bypasses, allowing connections to internal or loopback addresses that were intended to be blocked. The issue is fixed in version 2.10.0 by rejecting invalid bracketed hosts.

References

Community reviews

Loading reviews…