Skip to main content
VulnerabilityPublished Updated

CVE-2026-25500: Ruby rack · Prior to versions 2.2.22, 3.1.20, and 3.2.5, Rack::Directory generates an HTML directory

Affects ruby-rackSource GCVE Database

0
Compare

Not known to be exploited · CVSS 5.4 Medium · fixed in 2.0.7-2ubuntu0.1+esm9 : update ruby-rack when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.0.7-2ubuntu0.1+esm9, 2.1.4-5ubuntu1.2+esm2, 2.2.7-1ubuntu0.6 +2
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Feb 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 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.10ruby-rackpkg:deb/ubuntu/ruby-rack?arch=source&distro=stonkingOther threatsAffected
  • <3.2.4-1ubuntu1
Fixed in
  • 3.2.4-1ubuntu1
Ubuntu 26.04 LTSruby-rackpkg:deb/ubuntu/ruby-rack?arch=source&distro=resoluteOther threatsAffected
  • <3.2.4-1ubuntu1
Fixed in
  • 3.2.4-1ubuntu1
Ubuntu 25.10ruby-rackpkg:deb/ubuntu/ruby-rack?arch=source&distro=questingOther threatsAffected
  • <3.1.16-0.1ubuntu0.2
Fixed in
  • 3.1.16-0.1ubuntu0.2
Ubuntu 24.04 LTSruby-rackpkg:deb/ubuntu/ruby-rack?arch=source&distro=nobleOther threatsAffected
  • <2.2.7-1ubuntu0.6
Fixed in
  • 2.2.7-1ubuntu0.6
Ubuntu Pro 22.04 LTSruby-rackpkg:deb/ubuntu/ruby-rack?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 2.1.4-5ubuntu1+esm2 – 2.1.4-5ubuntu1+esm5
  • <2.1.4-5ubuntu1.2+esm2
4 affected builds
Fixed in
  • 2.1.4-5ubuntu1.2+esm2
Ubuntu Pro 20.04 LTSruby-rackpkg:deb/ubuntu/ruby-rack?arch=source&distro=esm-apps/focalOther threatsAffected
  • <2.0.7-2ubuntu0.1+esm9
Fixed in
  • 2.0.7-2ubuntu0.1+esm9

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

Description

Rack is a modular Ruby web server interface. Prior to versions 2.2.22, 3.1.20, and 3.2.5, `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 starts with the `javascript:` scheme (e.g. `javascript:alert(1)`), the generated index contains an anchor whose `href` is exactly `javascript:alert(1)`. Clicking the entry executes JavaScript in the browser (demonstrated with `alert(1)`). Versions 2.2.22, 3.1.20, and 3.2.5 fix the issue.

References

Community reviews

Loading reviews…