PT-2026-20325

CVE-2026-25500

·

Published

2026-01-01

·

Updated

2026-09-18

Description by

CVSS 3.1
5.4
Medium
MetricsAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Rack versions prior to 2.2.22 Rack versions prior to 3.1.20 Rack versions prior to 3.2.5
Description Rack’s Rack::Directory component generates HTML directory indexes with clickable links for each file entry. If a file exists with a basename starting with the javascript: scheme (for example, javascript:alert(1)), the generated index includes an anchor with an href attribute set to that scheme. Clicking this link executes JavaScript in the browser. This results in a client-side cross-site scripting (XSS) condition in directory listings generated by Rack::Directory. The issue occurs because the file basename is directly inserted into the href attribute without validation or normalization. The vulnerable component is Rack::Directory.
Recommendations Update to Rack version 2.2.22 or later. Update to Rack version 3.1.20 or later. Update to Rack version 3.2.5 or later. Avoid exposing user-controlled directories via Rack::Directory. Apply a strict Content Security Policy (CSP) to reduce the impact of potential client-side execution issues. Restrict or sanitize uploaded filenames to disallow dangerous URI scheme prefixes.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-WHRJ-4476-WVMP
CLEANSTART-2026-GE08280
CLEANSTART-2026-IW08736
CLEANSTART-2026-IX45302
CLEANSTART-2026-RZ30606
CLEANSTART-2026-XJ84245
CLEANSTART-2026-YD79647
MGASA-2026-0075
OPENSUSE-SU-2026:10286-1
USN-8066-1
Found an issue in the description? Have something to add? Feel free to write us 👾