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

CVE-2026-141539: 
Ruby vulnerability analysis and mitigation

Overview

CVE-2026-141539 is a security feature bypass vulnerability in the Addressable Ruby gem's native IDNA backend, where a percent-encoded NUL byte (%00) in a hostname causes Addressable::URI#normalized_host to truncate the remainder of the hostname label when passed to libidn. This allows an attacker to craft a URL that bypasses host-based allow/block checks in applications that validate the raw host but use normalized forms for outbound requests. The vulnerability affects Addressable versions >= 2.2.5 and <= 2.9.2 when the idn-ruby gem is installed; the pure-Ruby IDNA backend is not affected. It was published on November 23, 2026, and assigned a CVSS v3.1 base score of 4.8 (Medium) (Github Advisory, GitHub Security Advisory).

Technical details

The root cause is improper neutralization of NUL bytes when processing internationalized domain names (CWE-158, CWE-626). When the native IDNA backend (via idn-ruby) is active, Addressable::URI#normalized_host percent-decodes the hostname and passes each label to libidn; libidn interprets the NUL byte (\0) as a C-string terminator and silently drops the rest of the label. For example, http://internal.example%00x/ normalizes to http://internal.example/. Methods such as #host and #to_s preserve the original encoded form, while #normalize, #normalized_host, #normalized_authority, #normalized_site, #origin, #display_uri, and #== all return or compare against the truncated host. An application is only vulnerable if it mixes these two representations — e.g., performing a denylist check on uri.host but making the outbound request via uri.normalize or uri.origin (Github Advisory, GitHub Security Advisory).

Impact

Successful exploitation allows an unauthenticated remote attacker to bypass host-based security controls (e.g., denylists or SSRFs protections) in Ruby applications that use Addressable with the native IDNA backend. The attacker can cause the application to send requests to a host it intended to block, resulting in low confidentiality impact (access to restricted resources) and low integrity impact (unauthorized outbound requests), with no availability impact. The vulnerability is particularly relevant in server-side request forgery (SSRF) mitigation logic and webhook URL validation scenarios (Github Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Github Advisory). The EPSS score is 0.0, reflecting very low current exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high attack complexity, as the attacker must supply a crafted URL to an application that specifically mixes raw and normalized host representations for security checks.

Exploitation steps

  1. Identify a target application: Find a Ruby application using the Addressable gem (>= 2.2.5, <= 2.9.2) with the idn-ruby gem installed, which performs host-based security checks (e.g., SSRF protection, webhook URL validation) using uri.host or uri.to_s but makes outbound requests using uri.normalize, uri.origin, or uri.display_uri.
  2. Craft a malicious URL: Construct a URL with a percent-encoded NUL byte in the hostname to bypass the denylist. For example, if internal.example is blocked: http://internal.example%00attacker.com/.
  3. Submit the URL to the application: Provide the crafted URL as input to the vulnerable endpoint (e.g., a webhook registration, URL fetch, or redirect parameter).
  4. Bypass the denylist check: The application checks uri.host, which returns internal.example%00attacker.com — not matching the blocked host internal.example, so the check passes.
  5. Trigger the outbound request: When the application calls uri.normalize or uri.origin to build the outbound request, libidn truncates the label at the NUL, and the request is sent to internal.example — the host the application intended to block (Github Advisory, GitHub Security Advisory).

Indicators of compromise

  • Network: Outbound HTTP/HTTPS requests from the application server to internal or otherwise blocked hostnames that should not be reachable; requests where the Host header does not match the URL as submitted by the user.
  • Logs: Application access logs showing URLs containing %00 (percent-encoded NUL) in the hostname field (e.g., internal.example%00somestring); web server or proxy logs showing requests to internal resources originating from the application tier.
  • Application Behavior: Unexpected responses from internal services accessed via the application's outbound HTTP client; errors or data from hosts that should have been blocked by security controls.

Mitigation and workarounds

Upgrade the addressable gem to version 2.10.0, which fixes the native IDNA backend to leave labels containing a NUL byte unchanged (consistent with the pure-Ruby backend behavior) (Github Advisory, Addressable 2.10.0 Release). If immediate upgrade is not possible, apply one of the following workarounds: (1) validate the host using the same normalized value used for the outbound request (e.g., check uri.normalize.host instead of uri.host); (2) explicitly reject any URI whose host contains %00; or (3) remove the idn-ruby gem so Addressable falls back to the unaffected pure-Ruby IDNA backend. Additionally, restrict egress from application servers where feasible to limit the blast radius of any bypass.

Community reactions

The vulnerability was discovered and reported by Bob Aman (@sporkmonger), the maintainer of the Addressable gem itself, and was fixed in the same release (Github Advisory). The advisory was published to the GitHub Advisory Database on December 1, 2026, and received standard automated tracking from vulnerability aggregators. No significant broader media coverage or notable researcher commentary beyond the official advisory has been observed.

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