Is sinatra 0.1 vulnerable?

RubyGems · 4 releases from 0.1.0 to 0.1.7 · latest sinatra is 4.2.2 · checked 18 Nov 2026

Yes: 3 known advisories

Yes. sinatra 0.1.7, the last 0.1 release, is affected by 3 known security advisories (1 high, 1 medium, 1 low), including CVE-2022-29970, CVE-2024-21510, CVE-2025-61921. Upgrade to 4.2.0 or later to fix all of them.

Upgrade with:bundle update --conservative sinatra # Gemfile: '>= 4.2.0'

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

Advisories affecting sinatra 0.1.7

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

    sinatra does not validate expanded path matches

    Affected
    <2.2.0
    Fixed in
    2.2.0

Every sinatra 0.1.x release

Affected: 0.1.0 to 0.1.7. Latest sinatra: 4.2.2.

VersionKnown advisories
sinatra 0.1.7CVE-2025-61921, CVE-2024-21510, CVE-2022-29970
sinatra 0.1.6CVE-2025-61921, CVE-2024-21510, CVE-2022-29970
sinatra 0.1.5CVE-2025-61921, CVE-2024-21510, CVE-2022-29970
sinatra 0.1.0CVE-2025-61921, CVE-2024-21510, CVE-2022-29970

Which of your client projects are still on sinatra 0.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.