# sinatra (RubyGems) vulnerabilities

6 known vulnerabilities (1 high, 1 medium, 1 low), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Registry: https://rubygems.org/gems/sinatra

## Advisories (6)

### [CVE-2025-61921](https://cve.now/CVE-2025-61921): Sinatra has ReDoS vulnerability in ETag header value generation

- Severity: Low 2.7
- Published: Oct 10, 2025
- Affected: fixed in 4.2.0.

### [CVE-2024-21510](https://cve.now/CVE-2024-21510): Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the X-Forwarded-Host…

- Severity: Medium 5.4
- Published: Nov 1, 2024
- Affected: fixed in 4.1.0.

### [CVE-2022-45442](https://cve.now/CVE-2022-45442): Sinatra vulnerable to Reflected File Download attack

- Severity: High 8.8
- Published: Nov 28, 2022
- Affected: from 3.0, fixed in 3.0.4; from 2.0.0, fixed in 2.2.3.

### [CVE-2022-29970](https://cve.now/CVE-2022-29970): Sinatra before 2.2.0 does not validate that the expanded path matches public\_dir when serving static files.

- Severity: Unrated
- Published: May 2, 2022
- Affected: fixed in 2.2.0.

### [CVE-2018-11627](https://cve.now/CVE-2018-11627): Sinatra before 2.0.2 has XSS via the 400 Bad Request page that occurs upon a params parser exception.

- Severity: Unrated
- Published: May 31, 2018
- Affected: from 2.0.0, fixed in 2.0.2.

### [CVE-2018-7212](https://cve.now/CVE-2018-7212): An issue was discovered in rack-protection/lib/rack/protection/path\_traversal.rb in Sinatra 2.x before 2.0.1 on Windows.

- Severity: Unrated
- Published: Feb 18, 2018
- Affected: from 2.0.0.beta1, fixed in 2.0.1.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/rubygems/sinatra
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
