Repository navigation
Upgrade sinatra 2.1.0 -> 4.2.0 [SECURITY] - #44
Open
aaf-terraform wants to merge 1 commit into
Open
aaf-terraform wants to merge 1 commit into
aaf-terraform wants to merge 1 commit into
Conversation
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
5 times, most recently
from
April 23, 2025 05:05
e871688 to
2f27af8
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
4 times, most recently
from
May 4, 2025 18:09
5586f28 to
1014b83
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
4 times, most recently
from
May 9, 2025 12:13
52dfe1f to
afa9ea0
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
3 times, most recently
from
May 22, 2025 06:12
1e57547 to
5c314a6
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
3 times, most recently
from
June 3, 2025 06:11
7a8b963 to
f64303e
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
2 times, most recently
from
June 17, 2025 18:11
f4a42e6 to
1c9cf0e
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
4 times, most recently
from
June 27, 2025 12:54
b8105a4 to
ca95bf0
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
2 times, most recently
from
July 2, 2025 06:12
ed7d3c9 to
201ccb9
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
from
August 23, 2025 06:10
2568c0e to
7e93e5a
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
2 times, most recently
from
September 11, 2025 00:33
b5a379d to
885e770
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
3 times, most recently
from
September 20, 2025 00:31
df071b2 to
13b2de8
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
from
September 25, 2025 12:14
13b2de8 to
968c085
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
3 times, most recently
from
October 7, 2025 06:12
acb02c1 to
ae609c0
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
from
October 10, 2025 06:12
ae609c0 to
e5a4974
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
2 times, most recently
from
October 18, 2025 06:11
877a821 to
f9dc67d
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
3 times, most recently
from
November 4, 2025 06:13
8051dbc to
2c05b81
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
4 times, most recently
from
December 3, 2025 12:16
2128378 to
739045a
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
3 times, most recently
from
December 18, 2025 12:15
6200fbb to
8456ffb
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
from
January 6, 2026 22:40
8456ffb to
110f277
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
from
January 13, 2026 22:40
110f277 to
8eb8519
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
from
January 27, 2026 22:40
8eb8519 to
6c3059f
Compare
aaf-terraform
force-pushed
the
renovate/rubygems-sinatra-vulnerability
branch
from
February 3, 2026 22:45
6c3059f to
dcd704c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.1.0->4.2.0GitHub Vulnerability Alerts
CVE-2022-29970
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
CVE-2022-45442
Description
An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input.
References
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 (XFH) header. When making a request to a method with redirect applied, it is possible to trigger an Open Redirect Attack by inserting an arbitrary address into this header. If used for caching purposes, such as with servers like Nginx, or as a reverse proxy, without handling the X-Forwarded-Host header, attackers can potentially exploit Cache Poisoning or Routing-based SSRF.
CVE-2025-61921
Summary
There is a denial of service vulnerability in the
If-MatchandIf-None-Matchheader parsing component of Sinatra, if theetagmethod is used when constructing the response and you are using Ruby < 3.2.Details
Carefully crafted input can cause
If-MatchandIf-None-Matchheader parsing in Sinatra to take an unexpected amount of time, possibly resulting in a denial of service attack vector. This header is typically involved in generating theETagheader value. Any applications that use theetagmethod when generating a response are impacted if they are using Ruby below version 3.2.Resources
Release Notes
sinatra/sinatra (sinatra)
v4.2.0Compare Source
:static_headerssetting for custom headers in static file responses (#2089)etag_matches?to prevent ReDoS (#2121)PATH_INFOcan never be empty (#2114)content_typeparameters (#2078)v4.1.1Compare Source
v4.1.0Compare Source
host_authorizationsetting (#2053).localhost,.testand any IP address in development mode.Sinatra::IndifferentHashwhen calling#except(#2044)URIfor Ruby 3.4 (#2060)rackupno longer depends on WEBrick, recommend Puma instead (4a558503)--enable-frozen-string-literal(#2033)Rack::Loggercontent-lengthheader whenRack::Filesis usedv4.0.1Compare Source
Rack 3.1 compatibility (#2035)
Fix malformed Content-Type headers (#2081)
Avoid crash for integer values in
content_typeparameters (#2078)Fix compatibility with --enable-frozen-string-literal (#2033)
Declare missing dependencies for Ruby 3.5 (#2032)
Fix warning about Hash construction. (#2028)
Support Zeitwerk 2.7.0+ (#2050)
Address URI depreciation (#2060)
v4.0.0Compare Source
New: Add support for Rack 3 (#1857)
Require Ruby 2.7.8 as minimum Ruby version (#1993)
Breaking change: Drop support for Rack 2 (#1857)
rackupgem installedBreaking change: Remove the
IndifferentHashinitializer (#1982)Breaking change: Disable
session_hijackingprotection by default (#1984)Breaking change: Remove
Rack::Protection::EncryptedCookie(#1989)Rack::Session::Cookie)v3.2.0Compare Source
New: Add
#exceptmethod toSinatra::IndifferentHash(#1940)New: Use
Exception#detailed_messageto show backtrace (#1952)New: Add
Sinatra::HamlHelpersto sinatra-contrib (#1960)Fix: Add
base64to rack-protection runtime dependencies (#1946)Fix: Avoid open-ended dependencies for sinatra-contrib and rack-protection (#1949)
Fix: Helpful message when
Sinatra::Runnertimes out (#1975)Fix: Ruby 3.3 + Bundler 2.5 compatibility (#1975)
v3.1.0Compare Source
New: Add sass support via sass-embedded #1911 by なつき
New: Add start and stop callbacks #1913 by Jevin Sew
New: Warn on dropping sessions #1900 by Jonathan del Strother
New: Make Puma the default server #1924 by Patrik Ragnarsson
Fix: Remove use of Tilt::Cache #1922 by Jeremy Evans (allows use of Tilt 2.2.0 without deprecation warning)
Fix: rack-protection: specify rack version requirement #1932 by Patrik Ragnarsson
v3.0.6Compare Source
Fix: Add support to keep open streaming connections with Puma #1858 by Jordan Owens
Fix: Avoid crash in
urihelper on Integer input #1890 by Patrik RagnarssonFix: Rescue
RuntimeErrorwhen trying to useSecureRandom#1888 by Stefan Sundinv3.0.5Compare Source
Fix: Add Zeitwerk compatibility. #1831 by Dawid Janczak
Fix: Allow CALLERS_TO_IGNORE to be overridden
v3.0.4Compare Source
v3.0.3Compare Source
v3.0.2Compare Source
v3.0.1Compare Source
Fix: Revert removal of rack-protection.rb. #1814 by Olle Jonsson
Fix: Revert change to server start and stop messaging by using Kernel#warn. Renamed internal warn method warn_for_deprecation. #1818 by Jordan Owens
v3.0.0Compare Source
New: Add Falcon support. #1794 by Samuel Williams and @horaciob
New: Add AES GCM encryption support for session cookies. [#1324] (#1324) by Michael Coyne
Deprecated: Sinatra Reloader will be removed in the next major release.
Fix: Internal Sinatra errors now extend
Sinatra::Error. This fixes #1204 and #1518. bda8c29d by Jordan OwensFix: Preserve query param value if named route param nil. #1676 by Jordan Owens
Require Ruby 2.6 as minimum Ruby version. #1699 by Eloy Pérez
Breaking change: Remove support for the Stylus template engine. #1697 by Eloy Pérez
Breaking change: Remove support for the erubis template engine. #1761 by Eloy Pérez
Breaking change: Remove support for the textile template engine. #1766 by Eloy Pérez
Breaking change: Remove support for SASS as a template engine. #1768 by Eloy Pérez
Breaking change: Remove support for Wlang as a template engine. #1780 by Eloy Pérez
Breaking change: Remove support for CoffeeScript as a template engine. #1790 by Eloy Pérez
Breaking change: Remove support for Mediawiki as a template engine. #1791 by Eloy Pérez
Breaking change: Remove support for Creole as a template engine. #1792 by Eloy Pérez
Breaking change: Remove support for Radius as a template engine. #1793 by Eloy Pérez
Breaking change: Remove support for the defunct Less templating library. See #1716, #1715 for more discussion and background. d1af2f1e by Olle Jonsson
Breaking change: Remove Reel integration. 54597502 by Olle Jonsson
CI: Start testing on Ruby 3.1. 60e221940 and b0fa4bef by Johannes Würbach
Use
Kernel#caller_locations. #1491 by Julik TarkhanovDocs: Japanese documentation: Add notes about the
default_content_typesetting. #1650 by Akifumi TominagaDocs: Polish documentation: Add section about Multithreaded modes and Routes. #1708 by Patrick Gramatowski
Docs: Japanese documentation: Make Session section reflect changes done to README.md. #1731 by @shu-i-chi
v2.2.4Compare Source
v2.2.3Compare Source
Fix: Escape filename in the Content-Disposition header. #1841 by Kunpei Sakai
Fix: fixed ReDoS for Rack::Protection::IPSpoofing. #1823 by @ooooooo-q
v2.2.2Compare Source
v2.2.1Compare Source
Fix JRuby regression by using ruby2_keywords for delegation. #1750 by Patrik Ragnarsson
Add JRuby to CI. #1755 by Karol Bucek
v2.2.0Compare Source
Breaking change: Add
#select,#rejectand#compactmethods toSinatra::IndifferentHash. If hash keys need to be converted to symbols, call#to_hto get aHashinstance first. #1711 by Olivier BelloneHandle EOFError raised by Rack and return Bad Request 400 status. #1743 by tamazon
Minor refactors in
base.rb. #1640 by ceclinuxAdd escaping to the static 404 page. #1645 by Chris Gavin
Remove
detect_rack_handlermethod. #1652 by ceclinuxRespect content type set in superclass before filter. Fixes #1647 #1649 by Jordan Owens
Revert "Use prepend instead of include for helpers. #1662 by namusyaka
Fix usage of inherited
Sinatra::Baseclasses keyword arguments. Fixes #1669 #1670 by Cadu RibeiroReduce RDoc generation time by not including every README. Fixes #1578 #1671 by Eloy Pérez
Add support for per form csrf tokens. Fixes #1616 #1653 by Jordan Owens
Update MAINTENANCE.md with the
stablebranch status. #1681 by Fredrik RubenssonValidate expanded path matches
public_dirwhen serving static files. #1683 by cji-stripeFix Delegator to pass keyword arguments for Ruby 3.0. #1684 by andrewtblake
Fix use with keyword arguments for Ruby 3.0. #1701 by Robin Wallin
Fix memory leaks for proc template. Fixes #1704 #1719 by Slevin
Remove unnecessary
test_filesfrom the gemspec. #1712 by Masataka Pocke KuwabaraDocs: Spanish documentation: Update README.es.md with removal of Thin. #1630 by Espartaco Palma
Docs: German documentation: Fixed typos in German README.md. #1648 by Juri
Docs: Japanese documentation: Update README.ja.md with removal of Thin. #1629 by Ryuichi KAWAMATA
Docs: English documentation: Various minor fixes to README.md. #1663 by Yanis Zafirópulos
Docs: English documentation: Document when
dump_errorsis enabled. Fixes #1664 #1665 by Patrik RagnarssonDocs: Brazilian Portuguese documentation: Update README.pt-br.md with translation fixes. #1668 by Vitor Oliveira
CI
Use latest JRuby 9.2.16.0 on CI. #1682 by Olle Jonsson
Switch CI from travis to GitHub Actions. #1691 by namusyaka
Skip the Slack action if
secrets.SLACK_WEBHOOKis not set. #1705 by Robin WallinSmall CI improvements. #1703 by Robin Wallin
Drop auto-generated boilerplate comments from CI configuration file. #1728 by Olle Jonsson
sinatra-contrib
Rack protection
origin_whitelistoption. Fixes #1641 #1642 by Takeshi YASHIROConfiguration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.