Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-25500— Rack's Stored XSS in Rack::Directory via javascript: filenames rendered into anchor href

Quick assessment

Affected
rack rack
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Rack是Rack开源的一个模块化的Ruby web服务器界面。 Rack 2.2.22之前版本、3.1.20之前版本和3.2.5之前版本存在跨站脚本漏洞,该漏洞源于Rack::Directory生成的HTML目录索引中存在可点击的javascript:链接,可能导致点击时在浏览器中执行JavaScript。

CVSS 5.4 · Medium EPSS 0.27% · P18
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-25500

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Rack's Stored XSS in Rack::Directory via javascript: filenames rendered into anchor href
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Rack 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Rack是Rack开源的一个模块化的Ruby web服务器界面。 Rack 2.2.22之前版本、3.1.20之前版本和3.2.5之前版本存在跨站脚本漏洞,该漏洞源于Rack::Directory生成的HTML目录索引中存在可点击的javascript:链接,可能导致点击时在浏览器中执行JavaScript。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
rack rack < 2.2.22 -

II. Public POCs for CVE-2026-25500

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-25500

请登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2026-25500

No comments yet


Leave a comment