CVE Explorer
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,
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"rack","vendor":"rack","versions":[{"status":"affected","version":"< 2.2.22"},{"status":"affected","version":">= 3.0.0.beta1, < 3.1.20"},{"status":"affected","version":">= 3.2.0, < 3.2.5"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:56b96203e720d249fe15e7eed87f305bef21db82d427ee25f7483df5f26fb992 · sha256:f7d56032852701bc… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:56b96203e720d249fe15e7eed87f305bef21db82d427ee25f7483df5f26fb992 · sha256:f7d56032852701bc… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:56b96203e720d249fe15e7eed87f305bef21db82d427ee25f7483df5f26fb992 · sha256:f7d56032852701bc… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff","tags":["x_refsource_MISC"],"url":"https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:56b96203e720d249fe15e7eed87f305bef21db82d427ee25f7483df5f26fb992 · sha256:f7d56032852701bc… · /containers/cna/references/1
{"name":"https://github.com/rack/rack/security/advisories/GHSA-whrj-4476-wvmp","tags":["x_refsource_CONFIRM"],"url":"https://github.com/rack/rack/security/advisories/GHSA-whrj-4476-wvmp"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:56b96203e720d249fe15e7eed87f305bef21db82d427ee25f7483df5f26fb992 · sha256:f7d56032852701bc… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.