sinatra vulnerabilities

Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.

Registry
RubyGems
Latest
4.2.2
License
MIT

6 known advisories

The latest version, 4.2.2, is not affected by any of them. Projects on older versions may be.

Update to the latest version:bundle update --conservative sinatra # Gemfile: '>= 4.2.2'

Is your project on an affected sinatra?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for sinatra

  • LowCVE-2025-61921GHSA-mr3q-g2mv-mr4q10 Oct 2025

    Sinatra is vulnerable to ReDoS through ETag header value generation

    Affected
    <4.2.0
    Fixed in
    4.2.0
  • MediumCVE-2024-21510GHSA-hxx2-7vcw-mqr31 Nov 2024

    Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision

    Affected
    <4.1.0
    Fixed in
    4.1.0
  • HighCVE-2022-45442GHSA-2x8x-jmrp-phxw30 Nov 2022

    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
  • HighCVE-2022-29970GHSA-qp49-3pvw-x4m53 May 2022

    sinatra does not validate expanded path matches

    Affected
    <2.2.0
    Fixed in
    2.2.0
  • MediumCVE-2018-11627GHSA-mq35-wqvf-r23c5 Jun 2018

    Sinatra Cross-site Scripting vulnerability

    Affected
    >=2.0.0 <2.0.2
    Fixed in
    2.0.2
  • MediumCVE-2018-7212GHSA-h29f-7f56-j8wh20 Feb 2018

    Sinatra Path Traversal vulnerability

    Affected
    >=2.0.0.beta1 <2.0.1
    Fixed in
    2.0.1

Is your sinatra version vulnerable?

Which of your client projects still run an old sinatra?

NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other RubyGems packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.