Is sinatra 2.1 vulnerable?
RubyGems · 1 release from 2.1.0 to 2.1.0 · latest sinatra is 4.2.2 · checked 18 Nov 2026
Yes: 4 known advisories
Yes. sinatra 2.1.0, the last 2.1 release, is affected by 4 known security advisories (2 high, 1 medium, 1 low), including CVE-2022-45442, CVE-2022-29970, CVE-2024-21510. Upgrade to 4.2.0 or later to fix all of them.
bundle update --conservative sinatra # Gemfile: '>= 4.2.0'Is your project on an affected sinatra?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting sinatra 2.1.0
Sinatra is vulnerable to ReDoS through ETag header value generation
- Affected
- <4.2.0
- Fixed in
- 4.2.0
Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision
- Affected
- <4.1.0
- Fixed in
- 4.1.0
Sinatra vulnerable to Reflected File Download attack
- Affected
- >=3.0 <3.0.4 · >=2.0.0 <2.2.3
- Fixed in
- 2.2.3, 3.0.4
sinatra does not validate expanded path matches
- Affected
- <2.2.0
- Fixed in
- 2.2.0
Which of your client projects are still on sinatra 2.1?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact sinatra version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other sinatra versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.