deps: Update dependency sinatra-contrib to v4.2.2 #24

Open
renovate-bot wants to merge 1 commit from renovate/sinatra-contrib-4.x-lockfile into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
sinatra-contrib (source) 4.2.1 → 4.2.2 age confidence

Release Notes

sinatra/sinatra (sinatra-contrib)

v4.2.2

Compare Source

  • Fix: Require a dot before the domain for leading-dot permitted_hosts in Rack::Protection::HostAuthorization

    • .example.org no longer permits hosts that only end in example.org, like evilexample.org
  • Fix: Do not treat a missing Referer as same-origin when Sec-Fetch-Site says the request is cross-site or same-site

    • Affects RemoteToken, JsonCsrf and RemoteReferrer in Rack::Protection
    • Requests with neither header are accepted as before, allow_empty_referrer still defaults to true
  • Fix: Rack::Protection::CookieTossing no longer rejects all requests after one with duplicate session cookies

  • Docs: Document that static files are served through symlinks pointing outside public_folder

  • Fix: Sinatra::QuietLogger no longer hides requests that are routed outside the quiet prefixes

    • /images/../admin is routed to /admin, so it is now logged even with images as a quiet prefix
  • Fix: Set Strict-Transport-Security and Referrer-Policy on responses rejected by other protections

    • Only for apps that use strict_transport or referrer_policy, neither is enabled by default
    • Responses rejected by AuthenticityToken, FormToken or CookieTossing now have both headers, those rejected by RemoteReferrer or SessionHijacking now have Strict-Transport-Security
    • Requests are accepted and rejected as before, so nothing changes with the drop_session reaction, the default in Sinatra, as it does not reject requests
    • A header already set on the response is kept
  • Fix: Run Rack::Protection::PathTraversal before the other protections

    • All protections now see the normalized path, the one the app routes on, where some saw the path as it was sent
    • Only requests with a path that gets normalized are affected: . or .. segments, %2e, %2f, %5c, backslashes or repeated slashes
    • Check code written for the path as it was sent: an allow_if matching /webhooks/[^/]+ no longer matches /webhooks/a%2Fb, as it is called with /webhooks/a/b
    What Before After
    allow_if of AuthenticityToken, FormToken, HttpOrigin and JsonCsrf called with the path as it was sent called with the normalized path
    instrumenter of the protections that ran before PathTraversal notified with the path as it was sent notified with the normalized path
    Per-form tokens of AuthenticityToken and FormToken checked against the path as it was sent checked against the normalized path
    CookieTossing redirected to, and expired cookies for, the path as it was sent uses the normalized path
    RemoteToken, XSSHeader and middleware added with use saw the normalized path unchanged
  • Fix: rack-protection and sinatra-contrib used from a path source no longer fail to load after bundle cache (#​2144)

  • Fix: Avoid "method redefined" warnings in Sinatra::Delegator (#​2139)


Configuration

📅 Schedule: (in timezone Europe/Helsinki)

  • Branch creation
    • At any time (no schedule defined)
  • 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 has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [sinatra-contrib](http://sinatrarb.com/contrib/) ([source](https://github.com/sinatra/sinatra/tree/HEAD/sinatra-contrib)) | `4.2.1` → `4.2.2` | ![age](https://developer.mend.io/api/mc/badges/age/rubygems/sinatra-contrib/4.2.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/sinatra-contrib/4.2.1/4.2.2?slim=true) | --- ### Release Notes <details> <summary>sinatra/sinatra (sinatra-contrib)</summary> ### [`v4.2.2`](https://github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#422--2026-11-17) [Compare Source](https://github.com/sinatra/sinatra/compare/v4.2.1...v4.2.2) - Fix: Require a dot before the domain for leading-dot `permitted_hosts` in `Rack::Protection::HostAuthorization` - `.example.org` no longer permits hosts that only end in `example.org`, like `evilexample.org` - Fix: Do not treat a missing `Referer` as same-origin when `Sec-Fetch-Site` says the request is cross-site or same-site - Affects `RemoteToken`, `JsonCsrf` and `RemoteReferrer` in `Rack::Protection` - Requests with neither header are accepted as before, `allow_empty_referrer` still defaults to `true` - Fix: `Rack::Protection::CookieTossing` no longer rejects all requests after one with duplicate session cookies - Docs: Document that static files are served through symlinks pointing outside `public_folder` - Fix: `Sinatra::QuietLogger` no longer hides requests that are routed outside the quiet prefixes - `/images/../admin` is routed to `/admin`, so it is now logged even with `images` as a quiet prefix - Fix: Set `Strict-Transport-Security` and `Referrer-Policy` on responses rejected by other protections - Only for apps that use `strict_transport` or `referrer_policy`, neither is enabled by default - Responses rejected by `AuthenticityToken`, `FormToken` or `CookieTossing` now have both headers, those rejected by `RemoteReferrer` or `SessionHijacking` now have `Strict-Transport-Security` - Requests are accepted and rejected as before, so nothing changes with the `drop_session` reaction, the default in Sinatra, as it does not reject requests - A header already set on the response is kept - Fix: Run `Rack::Protection::PathTraversal` before the other protections - All protections now see the normalized path, the one the app routes on, where some saw the path as it was sent - Only requests with a path that gets normalized are affected: `.` or `..` segments, `%2e`, `%2f`, `%5c`, backslashes or repeated slashes - Check code written for the path as it was sent: an `allow_if` matching `/webhooks/[^/]+` no longer matches `/webhooks/a%2Fb`, as it is called with `/webhooks/a/b` | What | Before | After | | --------------------------------------------------------------------------- | --------------------------------------------------------------- | ----------------------------------- | | `allow_if` of `AuthenticityToken`, `FormToken`, `HttpOrigin` and `JsonCsrf` | called with the path as it was sent | called with the normalized path | | `instrumenter` of the protections that ran before `PathTraversal` | notified with the path as it was sent | notified with the normalized path | | Per-form tokens of `AuthenticityToken` and `FormToken` | checked against the path as it was sent | checked against the normalized path | | `CookieTossing` | redirected to, and expired cookies for, the path as it was sent | uses the normalized path | | `RemoteToken`, `XSSHeader` and middleware added with `use` | saw the normalized path | unchanged | - Fix: `rack-protection` and `sinatra-contrib` used from a path source no longer fail to load after `bundle cache` ([#&#8203;2144](https://github.com/sinatra/sinatra/pull/2144)) - Fix: Avoid "method redefined" warnings in `Sinatra::Delegator` ([#&#8203;2139](https://github.com/sinatra/sinatra/pull/2139)) </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Helsinki) - Branch creation - At any time (no schedule defined) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMzYuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjIzNi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
deps: Update dependency sinatra-contrib to v4.2.2
Some checks failed
CI / test (push) Failing after 5m16s
c107cbcc28
Some checks failed
CI / test (push) Failing after 5m16s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'renovate/sinatra-contrib-4.x-lockfile:renovate/sinatra-contrib-4.x-lockfile'
git switch 'renovate/sinatra-contrib-4.x-lockfile'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'renovate/sinatra-contrib-4.x-lockfile'
git switch 'renovate/sinatra-contrib-4.x-lockfile'
git rebase 'main'
git switch 'main'
git merge --ff-only 'renovate/sinatra-contrib-4.x-lockfile'
git switch 'renovate/sinatra-contrib-4.x-lockfile'
git rebase 'main'
git switch 'main'
git merge --no-ff 'renovate/sinatra-contrib-4.x-lockfile'
git switch 'main'
git merge --squash 'renovate/sinatra-contrib-4.x-lockfile'
git switch 'main'
git merge --ff-only 'renovate/sinatra-contrib-4.x-lockfile'
git switch 'main'
git merge 'renovate/sinatra-contrib-4.x-lockfile'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
asxpi/asxpio!24
No description provided.