RubyGems (Ruby)Worst: High6 advisories
sinatra: known vulnerabilities
sinatra has 6 reviewed security advisories in the GitHub Advisory Database — 2 high, 3 moderate, 1 low. The most recent was published 2025-10-10. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the sinatra versions running across your servers, containers and images, and ranks what to patch first.
How to fix sinatra
Upgrade sinatra to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):
bundle update sinatra to 4.2.0 (or gem install sinatra -v 4.2.0)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (6)
Sinatra is vulnerable to ReDoS through ETag header value generation
Low CWE-1333 CWE-400
— Affected: before 4.2.0. Fixed in 4.2.0. Published 2025-10-10. GHSA-mr3q-g2mv-mr4q · CVE-2025-61921
Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision
Moderate 5.4 CWE-807
— Affected: before 4.1.0. Fixed in 4.1.0. Published 2024-11-01. GHSA-hxx2-7vcw-mqr3 · CVE-2024-21510
Sinatra vulnerable to Reflected File Download attack
High 8.8 CWE-494
— Affected: from 2.0.0 up to 2.2.3. Fixed in 2.2.3. Published 2022-11-28. GHSA-2x8x-jmrp-phxw · CVE-2022-45442
sinatra does not validate expanded path matches
High 7.5 CWE-22 CWE-426
— Affected: before 2.2.0. Fixed in 2.2.0. Published 2022-05-02. GHSA-qp49-3pvw-x4m5 · CVE-2022-29970
Sinatra Cross-site Scripting vulnerability
Moderate 6.1 CWE-79
— Affected: from 2.0.0 up to 2.0.2. Fixed in 2.0.2. Published 2018-05-31. GHSA-mq35-wqvf-r23c · CVE-2018-11627
Sinatra Path Traversal vulnerability
Moderate 5.3 CWE-22
— Affected: from 2.0.0.beta1 up to 2.0.1. Fixed in 2.0.1. Published 2018-02-20. GHSA-h29f-7f56-j8wh · CVE-2018-7212
Find sinatra across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.