Ruby Rack < 2.2.22 / 3.0.0.beta1 < 3.1.20 / 3.2.0 < 3.2.5 Multiple Vulnerabilities

high Nessus Plugin ID 299587

Synopsis

The remote host has a Ruby library installed that is affected by multiple vulnerabilities.

Description

The version of the Rack Ruby library installed on the remote host is prior to 2.2.22, 3.x prior to 3.1.20, or 3.2.x prior to 3.2.5. It is, therefore, affected by multiple vulnerabilities:

- Rack::Directory’s path check used a string prefix match on the expanded path. A request like /../root_example/ can escape the configured root if the target path starts with the root string, allowing directory listing outside the intended root. (CVE-2026-22860)

- Rack::Directory generates an HTML directory index where each file entry is rendered as a clickable link. If a file exists on disk whose basename begins with the javascript: scheme (e.g. javascript:alert(1)), the generated index includes an anchor whose href attribute is exactly javascript:alert(1). Clicking this entry executes arbitrary JavaScript in the context of the hosting application. (CVE-2026-25500)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Rack version 2.2.22, 3.1.20, 3.2.5 or later.

See Also

https://github.com/advisories/GHSA-mxw3-3hh2-x2mh

https://github.com/advisories/GHSA-whrj-4476-wvmp

Plugin Details

Severity: High

ID: 299587

File Name: ruby_gem_rack_CVE-2026-22860_CVE-2026-25500.nasl

Version: 1.1

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 2/19/2026

Updated: 2/19/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: High

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2026-22860

CVSS v3

Risk Factor: High

Base Score: 7.5

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

Vulnerability Information

CPE: cpe:/a:ruby:rack

Required KB Items: Host/ruby/modules/enumerated

Patch Publication Date: 2/16/2026

Vulnerability Publication Date: 2/16/2026

Reference Information

CVE: CVE-2026-22860, CVE-2026-25500