{"id":"CVE-2026-25500","aliases":["GHSA-whrj-4476-wvmp"],"url":"https://o3.security/vulnerability/CVE-2026-25500","summary":"Rack's Stored XSS in Rack::Directory via javascript: filenames rendered into anchor href","details":"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.","published":"2026-02-18T18:59:31.964Z","modified":"2026-07-15T01:48:49.872789754Z","cvss":{"score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"rack","fixedVersion":"2.2.22"},{"ecosystem":"RubyGems","name":"rack","fixedVersion":"3.1.20"},{"ecosystem":"RubyGems","name":"rack","fixedVersion":"3.2.5"}],"fix":{"url":"https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff","label":"rack/rack@f2f225f"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25500.json"},{"type":"ADVISORY","url":"https://github.com/rack/rack/security/advisories/GHSA-whrj-4476-wvmp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25500"},{"type":"FIX","url":"https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:48:49.872789754Z"}}