Vulnerability
CVE-2026-25500
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.
137 advisories report this vulnerability, across 8 ecosystems.
Advisories in Wolfi
- CGA-35jr-xcrg-pwp8
- CGA-3fxf-6343-vf4h
- CGA-3xxq-665f-mwcp
- CGA-4m87-j6xh-9wwr
- CGA-5793-8p83-pprx
- CGA-6vjh-2qf3-x6hj
- CGA-7wj3-r7c6-fgqw
- CGA-8h5v-hgcg-49xg
- CGA-9vpg-67gv-f468
- CGA-9vqr-35hx-mrjr
- CGA-c6vg-h75p-85r8
- CGA-f8rp-j356-gpv7
- CGA-fm36-c673-3q8w
- CGA-fr34-j2q4-5r2r
- CGA-gxj2-gvw8-w8cj
- CGA-hm8v-x2cj-4mp9
- CGA-j2rv-45m6-4h6f
- CGA-pxq4-c58w-6972
- CGA-r2p7-qqf5-5fh2
- CGA-rj8x-wp67-gpj3
- CGA-rrwg-jj22-h5v5
- CGA-v69h-52c5-vh7m
- CGA-w4g5-x6r3-v7f9
- CGA-w7j2-wqff-9945