{"cve":"CVE-2026-25500","nvd":{"published":"2026-02-18T20:18:36.110","modified":"2026-06-17T10:24:44.857","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff","https://github.com/rack/rack/security/advisories/GHSA-whrj-4476-wvmp"],"products":["rack:rack"],"source":"nvd","synced_at":"2026-10-19T22:23:35.260773158+00:00"},"epss":{"cve":"CVE-2026-25500","score":0.00269,"percentile":0.19134,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-whrj-4476-wvmp","url":"https://osv.dev/vulnerability/GHSA-whrj-4476-wvmp","summary":"Stored XSS in Rack::Directory via javascript: filenames rendered into anchor href","modified":"2026-09-10T03:50:36.160309045Z","packages":[{"ecosystem":"RubyGems","name":"rack","purl":"pkg:gem/rack","ranges":["<2.2.22"],"fixed":["2.2.22"]},{"ecosystem":"RubyGems","name":"rack","purl":"pkg:gem/rack","ranges":[">=3.0.0.beta1 <3.1.20"],"fixed":["3.1.20"]},{"ecosystem":"RubyGems","name":"rack","purl":"pkg:gem/rack","ranges":[">=3.2.0 <3.2.5"],"fixed":["3.2.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}