devdocs
devdocs copied to clipboard
Update dependency sinatra to v4 [SECURITY]
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| sinatra (source, changelog) | 3.2.0 -> 4.1.0 |
GitHub Vulnerability Alerts
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.
Release Notes
sinatra/sinatra (sinatra)
v4.1.0
- New: Add
host_authorizationsetting (#2053)- Defaults to
.localhost,.testand any IP address in development mode. - Security: addresses CVE-2024-21510.
- Defaults to
- Fix: Return an instance of
Sinatra::IndifferentHashwhen calling#except(#2044) - Fix: Address warning from
URIfor Ruby 3.4 (#2060) - Fix:
rackupno longer depends on WEBrick, recommend Puma instead (4a558503) - Fix: Zeitwerk 2.7.0+ compatibility (#2050)
- Fix: Address warning about Hash construction for Ruby 3.4 (#2028)
- Fix: Declare missing dependencies for Ruby 3.5 (#2032)
- Fix: Compatibility with
--enable-frozen-string-literal(#2033) - Fix: Rack 3.1 compatibility (#2035)
- Don't depend on
Rack::Logger - Don't delete
content-lengthheader whenRack::Filesis used
- Don't depend on
v4.0.1
-
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.0
-
New: Add support for Rack 3 (#1857)
- Note: you may want to read the Rack 3 Upgrade Guide
-
Require Ruby 2.7.8 as minimum Ruby version (#1993)
-
Breaking change: Drop support for Rack 2 (#1857)
- Note: when using Sinatra to start the web server, you now need the
rackupgem installed
- Note: when using Sinatra to start the web server, you now need the
-
Breaking change: Remove the
IndifferentHashinitializer (#1982) -
Breaking change: Disable
session_hijackingprotection by default (#1984) -
Breaking change: Remove
Rack::Protection::EncryptedCookie(#1989)- Note: cookies are still encrypted (by [
Rack::Session::Cookie][Rack::Session::Cookie])
- Note: cookies are still encrypted (by [
Configuration
📅 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.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.