{"id":"CVE-2026-25500","published":"2026-02-18T18:59:31Z","modified":"2026-02-18T19:42:35Z","title":"Rack's Stored XSS in Rack::Directory via javascript: filenames rendered into anchor href","vendor":"rack","product":"rack","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00338,"percentile":0.19666,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-whrj-4476-wvmp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff","tags":["x_refsource_MISC"]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":3.93},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":["< 2.2.22",">= 3.0.0.beta1, < 3.1.20",">= 3.2.0, < 3.2.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-18T19:42:04.480536Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":["<2.2.22",">=3.0.0.beta1, <3.1.20",">=3.2.0, <3.2.5"],"patched":["2.2.22","3.1.20","3.2.5"],"from":["GHSA-whrj-4476-wvmp"],"provenance":"source"}],"summary":{"text":"Rack's Rack::Directory component, which generates HTML directory index pages, fails to neutralise file names that begin with the \"javascript:\" scheme, so such a name is emitted as a link whose href executes script. An attacker who can place a file with such a name in a served directory can cause JavaScript to run in a victim's browser by having them click the directory index entry, which requires user interaction and an account with at least low privileges, and the attack is effective from the network without further configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:09Z"},"euvd":{"id":"EUVD-2026-7916","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rack-cve-2026-22860","parents":[{"from":"CVE-2026-22860","to":"CVE-2026-25500","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rack/directory.rb"],"commits":["https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7","https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-61780","published":"2025-10-10","fixed":"3.2.3","kev":false,"link":{"from":"CVE-2025-61780","to":"CVE-2026-25500","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.20","toFixed":"2.2.22","daysApart":131},{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.18","toFixed":"3.1.20","daysApart":131}]}},{"cve":"CVE-2025-61919","published":"2025-10-10","fixed":"3.2.3","kev":false},{"cve":"CVE-2026-22860","published":"2026-02-18","fixed":"3.2.5","kev":false},{"cve":"CVE-2026-25500","published":"2026-02-18","fixed":"3.2.5","kev":false},{"cve":"CVE-2026-26961","published":"2026-04-02","fixed":"3.2.6","kev":false},{"cve":"CVE-2026-26962","published":"2026-04-02","fixed":"3.2.6","kev":false},{"cve":"CVE-2026-32762","published":"2026-04-02","fixed":"3.2.6","kev":false}],"package":"RubyGems:rack"}}