sinatra Known Vulnerabilities & Fixes
sinatra has 5 known security vulnerabilities in RubyGems (Ruby). Upgrade to version 4.2.0 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 4.2.0
Upgrading to 4.2.0 or later resolves all 5 known vulnerabilities in sinatra. Run: gem install sinatra -v 4.2.0
Is sinatra in your project?
Check if you're affected and upgrade to 4.2.0 to stay secure.
Security Summary
- 6 affected version ranges have been identified across these 5 advisories.
- 100% of known issues have a published fixed version.
- Remediation: gem update sinatra
Vulnerabilities
5 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Jun 5, 2018, most recently Oct 10, 2025 (2684 days apart).
| CVE / GHSA | Severity | Affected | Fixed In |
|---|---|---|---|
| CVE-2022-45442 Sinatra vulnerable to Reflected File Download attack | HIGH | 3.0.0, 3.0.1, 3.0.2, 3.0.3 (+15 more) | 3.0.4, 2.2.3 |
| CVE-2022-29970 sinatra does not validate expanded path matches | HIGH | 0.1.0, 0.1.5, 0.1.6, 0.1.7 (+84 more) | 2.2.0 |
| CVE-2018-11627 Sinatra Cross-site Scripting vulnerability | MEDIUM | 2.0.0, 2.0.1, 2.0.1.rc1 | 2.0.2 |
| CVE-2024-21510 Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision | MEDIUM | 0.1.0, 0.1.5, 0.1.6, 0.1.7 (+100 more) | 4.1.0 |
| CVE-2025-61921 Sinatra is vulnerable to ReDoS through ETag header value generation | LOW | 0.1.0, 0.1.5, 0.1.6, 0.1.7 (+102 more) | 4.2.0 |
About This Data
Vulnerability data for sinatra is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related RubyGems (Ruby) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of sinatra.