Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-141535

CVE-2026-141535: 
Ruby vulnerability analysis and mitigation

Overview

CVE-2026-141535 is a Server-Side Request Forgery (SSRF) / security feature bypass vulnerability in the Addressable Ruby gem, an alternative URI implementation to Ruby's standard library. Affecting versions >= 2.3.5 and < 2.10.0, the flaw arises because Addressable::URI#hostname strips brackets from non-IP-literal hosts while Addressable::URI#host retains them, creating a discrepancy that allows SSRF filter bypass. The vulnerability was reported by Praneeth (@praneeth-bala) of UCSB SecLab, published on November 23, 2026, and added to the GitHub Advisory Database on December 1, 2026. It carries a CVSS v3.1 base score of 3.7 (Low) (Github Advisory).

Technical details

The root cause is an interpretation conflict (CWE-436) combined with improper input validation (CWE-20) leading to SSRF (CWE-918). RFC 3986 §3.2.2 permits brackets in a URI host only around valid IPv6 addresses or IPvFuture literals, but Addressable versions >= 2.3.5 accepted any bracketed host value. The #host method returns the value with brackets intact (e.g., [127.0.0.1]), which fails IP resolution checks, while #hostname silently strips the brackets (returning 127.0.0.1), which resolves normally. Code that validates using #host but connects using #hostname — including via Net::HTTP — will therefore pass a bracketed non-IP host through an SSRF filter and then connect to the corresponding loopback or internal address. A proof-of-concept script is included in the official advisory demonstrating bypass of loopback/private-address checks using inputs such as http://[127.0.0.1]:PORT/, http://[localhost]:PORT/, and http://[0x7f.1]:PORT/ (Github Advisory, Patch Commit).

Impact

Successful exploitation allows an unauthenticated remote attacker to cause a vulnerable Ruby application to make HTTP requests to loopback addresses (e.g., 127.0.0.1) or internal network hostnames that SSRF defenses were intended to block. The confidentiality impact is rated Low — an attacker may read responses from internal services reachable by the server — while integrity and availability are unaffected per the CVSS assessment. The practical risk depends heavily on what internal services are exposed: in cloud environments with metadata endpoints (e.g., 169.254.169.254) or internal APIs, exploitation could expose sensitive configuration data or credentials (Github Advisory).

Exploitability

There is no public proof-of-concept exploit beyond the demonstration script included in the official advisory, and no evidence of in-the-wild exploitation has been observed (Github Advisory). No threat actor attribution is available. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high attack complexity — the attacker must be able to supply a URL to an application that uses the vulnerable #host/#hostname pattern and permits unresolved hosts through its SSRF filter.

Exploitation steps

  1. Identify a target application: Find a Ruby application that uses the Addressable gem (versions 2.3.5–2.9.2) to parse user-supplied URLs, performs SSRF validation using Addressable::URI#host, and then connects using Addressable::URI#hostname (e.g., via Net::HTTP).
  2. Craft a bracketed non-IP host URL: Construct a URL with a bracketed non-IPv6 host that resolves to a loopback or internal address when brackets are stripped, such as http://[127.0.0.1]:8080/, http://[localhost]/, http://[127.1]/, or http://[2130706433]/.
  3. Submit the URL to the target: Supply the crafted URL to the application's URL-fetching functionality (e.g., a webhook, URL preview, or import feature).
  4. Bypass SSRF filter: The application calls blocked?(uri) using uri.host (e.g., [127.0.0.1]), which fails IP resolution (IPAddr.new("[127.0.0.1]") raises, Resolv.getaddresses returns []), so the host is not recognized as loopback and passes the filter.
  5. Reach internal service: Net::HTTP (or similar) connects using uri.hostname (e.g., 127.0.0.1), which resolves normally, sending the HTTP request to the internal/loopback address and returning its response to the attacker (Github Advisory).

Indicators of compromise

  • Network: Outbound HTTP requests from the application server to loopback (127.0.0.1, ::1) or RFC 1918 private addresses (e.g., 10.x.x.x, 192.168.x.x, 172.16–31.x.x) or cloud metadata endpoints (169.254.169.254) that are unexpected or user-triggered.
  • Logs: Application access logs showing user-supplied URLs containing bracketed non-IPv6 hosts such as [127.0.0.1], [localhost], [127.1], [2130706433], or [0x7f.1]; HTTP client logs showing connections to internal addresses following such requests.
  • Application Behavior: Responses to user-initiated URL fetches that contain internal service data (e.g., cloud metadata, internal API responses) rather than expected external content.

Mitigation and workarounds

Upgrade the addressable gem to version 2.10.0 or later, which raises Addressable::URI::InvalidURIError for any bracketed host that does not enclose a valid IPv6 address or IPvFuture literal, matching the behavior of Ruby's standard URI library (Github Advisory, Release). If immediate upgrade is not possible, apply the following workarounds: (1) perform SSRF validation on uri.hostname rather than uri.host so the same value used for connection is also checked; (2) reject any URI whose #host starts with [ unless IPAddr.new(uri.hostname) confirms it is a valid IPv6 address; (3) ensure that hosts failing DNS resolution are treated as blocked rather than permitted.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-qrq6-rcpx-pmm6MEDIUM4.8
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-cwmp-x65r-27fvLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 02, 2026
GHSA-qg8x-qm93-fw27LOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-c7j3-jq7p-v3prLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026
GHSA-v6hg-69pc-4f3fLOW3.7
  • Ruby logoRuby
  • addressable
NoYesDec 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management