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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-18 · Modified: 2026-02-18
- Aliases: UBUNTU-CVE-2026-25500, DEBIAN-CVE-2026-25500, 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, CGA-22pr-42q4-9ffc, CGA-2642-748q-7wv7, CGA-267w-5cxp-gv3c, CGA-2722-6fw4-xj42, CGA-2978-c82p-qwcf, CGA-2cm3-vqvq-wmrg, CGA-2f74-5mm7-pr7g, CGA-2m95-4xw2-qqfv, CGA-2qfp-q89r-xmhm, CGA-2rmg-59c2-9mp5, CGA-2v27-v64c-5xxw, CGA-32cc-h2r6-qhgw, CGA-32gh-j9j8-v97g, CGA-388p-cccp-v9px, CGA-39pr-j8g3-52mm, CGA-3jw5-9326-j8v4, CGA-3mh6-p84h-p8cp, CGA-3pj8-2hpj-cr45, CGA-3vxw-92j3-q3f4, CGA-3whg-prjg-mj85, CGA-4p5h-j66g-7393, CGA-548x-gr24-8945, CGA-565h-586g-27hx, CGA-59qh-hcq6-j9p7, CGA-5gw7-6mch-w8r9, CGA-5gx9-c4jf-85cr, CGA-5rp3-6h3r-6xjq, CGA-6p5v-5rfm-p8mf, CGA-6ppr-wpw6-jx36, CGA-6wwq-3m88-3qr8, CGA-752c-r39j-c468, CGA-798v-mw3r-9rrj, CGA-7hj5-64jx-5268, CGA-7r85-wgp3-mp6f, CGA-7r95-x2h5-qwg4, CGA-7rw5-p7cj-h576, CGA-849j-2rwq-2q92, CGA-868v-jj3g-xfhh, CGA-87jf-8gc8-4pmm, CGA-87w3-xm88-f6fg, CGA-8c3v-mw4r-935p, CGA-8wv6-57mp-5844, CGA-8xc9-rj29-hr8v, CGA-9859-487w-j97m, CGA-9fc6-9p79-vjx9, CGA-9m8w-x9jp-g8qc, CGA-9mrp-3367-prwf, CGA-9q5r-vg75-phxq, CGA-c6rq-g52c-ff2j, CGA-cg4h-h29v-h6fm, CGA-cvj4-6hm3-84v4, CGA-f226-c3m9-24g6, CGA-f3cq-jfjw-4v7w, CGA-f582-9rjj-rh5w, CGA-f985-mcq6-v9f2, CGA-fj4w-gw6j-hgxh, CGA-g7q4-p6fj-3wv6, CGA-g9x4-2wmp-wpcx, CGA-gcvf-3rrc-5jqq, CGA-gh87-3q86-8784, CGA-grr6-mff9-37jp, CGA-gxq3-24x8-2985, CGA-gxw6-whx5-grg6, CGA-h3rq-3672-hwvf, CGA-h5cw-9h4r-pc84, CGA-h864-cjr8-mcm6, CGA-hh68-g694-mj9c, CGA-hq69-c638-jrcp, CGA-hv66-23qr-c9g7, CGA-hvr6-vx5m-h44p, CGA-j7fc-4cpf-hv92, CGA-j8jq-9637-5595, CGA-j8xr-39jc-4g63, CGA-jh7x-qhc9-wpcc, CGA-jjw4-hwcv-892g, CGA-jv7h-c9x2-p8x4, CGA-jxr2-c645-rj3h, CGA-mj3x-x8vc-m929, CGA-mj85-h55w-46hq, CGA-mq9x-x2cr-q8g8, CGA-mqjf-w8mr-ph6c, CGA-mr42-8px4-c82g, CGA-p34v-gw9j-ccpc, CGA-p8rj-qh5g-g6qc, CGA-pw4p-pfgg-53q9, GHSA-whrj-4476-wvmp, CGA-q33q-9m77-2q5f, CGA-q6v4-hjpf-xh42, CGA-q84h-cr5m-gmxm, CGA-qp89-7hq3-3qw9, CGA-r2w8-6c6g-8w25, CGA-rm8g-v653-2gmh, CGA-rvgx-rgcc-wwfw, CGA-vjr4-v7mr-hcmw, CGA-w38m-36p6-qv2m, CGA-w96h-4jqw-289h, CGA-wmg5-j35g-33hv, CGA-wmgc-2pqm-5ww9, CGA-wmv9-wg63-rvm6, CGA-ww8g-c2jw-547p, CGA-wwwx-pggp-fwp2, CGA-x4w6-2mqv-j3j8, CGA-x8r4-ppr2-2p9w, CGA-xqjf-3jr4-rm32, CGA-xv2x-8w6f-3vpg
- Record: https://cvemate.com/vulnerability/CVE-2026-25500 · JSON: https://cvemate.com/vulnerability/CVE-2026-25500/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.275%, percentile 21.303%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 80)

- chainguard gitlab-exporter-18.6 (Chainguard): \< 18.6.6-r1
- chainguard gitlab-exporter-18.7 (Chainguard): \< 18.7.4-r1
- chainguard gitlab-exporter-18.8 (Chainguard): \< 18.8.4-r1
- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r13
- chainguard gitlab-rails-ce-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): \< 18.8.7-r0
- chainguard gitlab-rails-ce-18.9 (Chainguard): \< 18.9.3-r0
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): \< 18.8.7-r0

## References

- <https://github.com/rack/rack/security/advisories/GHSA-whrj-4476-wvmp>
- <https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff>
- <https://ubuntu.com/security/CVE-2026-25500>
- <https://www.cve.org/CVERecord?id=CVE-2026-25500>
- <https://ubuntu.com/security/notices/USN-8066-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-25500>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25500.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25500>
- <https://github.com/rack/rack>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-25500.yml>

---

Data as of 2026-12-05T08:50:02.352Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
