Update dependency devise to v4 [SECURITY]#17
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
3b74662 to
5cf83f2
Compare
5cf83f2 to
90e58d2
Compare
Contributor
Author
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: Gemfile.lock |
Contributor
Author
|
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:
3.5.2→4.7.1GitHub Vulnerability Alerts
CVE-2019-5421
Devise ruby gem before 4.6.0 when the
lockablemodule is used is vulnerable to a time-of-check time-of-use (TOCTOU) race condition due toincrement_failed_attemptswithin theDevise::Models::Lockableclass not being concurrency safe.Severity
Medium
CVE-2019-16109
An issue was discovered in Plataformatec Devise before 4.7.1. It confirms accounts upon receiving a request with a blank confirmation_token, if a database record has a blank value in the confirmation_token column. (However, there is no scenario within Devise itself in which such database records would exist.)
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NCVE-2015-8314
Devise version before 3.5.4 uses cookies to implement a "Remember me" functionality. However, it generates the same cookie for all devices. If an attacker manages to steal a remember me cookie and the user does not change the password frequently, the cookie can be used to gain access to the application indefinitely.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NRelease Notes
heartcombo/devise (devise)
v4.7.1Compare Source
v4.7.0Compare Source
v4.6.2Compare Source
v4.6.1Compare Source
v4.6.0Compare Source
v4.5.0Compare Source
v4.4.3Compare Source
v4.4.2Compare Source
v4.4.1Compare Source
v4.4.0Compare Source
v4.3.0Compare Source
v4.2.1Compare Source
v4.2.0Compare Source
v4.1.1Compare Source
v4.1.0Compare Source
breaking changes
Drop support to Ruby < 2.7
Drop support to Rails < 7.0
Remove deprecated
:bypassoption fromsign_inhelper, usebypass_sign_ininstead. #5803Remove deprecated
devise_error_messages!helper, userender "devise/shared/error_messages", resource: resourceinstead. #5803Remove deprecated
scopesecond argument fromsign_in(resource, :admin)controller test helper, usesign_in(resource, scope: :admin)instead. #5803Remove deprecated
Devise::TestHelpers, useDevise::Test::ControllerHelpersinstead. #5803Remove deprecated
Devise::Models::Authenticatable::BLACKLIST_FOR_SERIALIZATION#5598Remove deprecated
Devise.activerecord51?method.Remove
SecretKeyFinderand useapp.secret_key_baseas the default secret key forDevise.secret_keyif a customDevise.secret_keyis not provided.This is potentially a breaking change because Devise previously used the following order to find a secret key:
Now, it always uses
application.secret_key_base. Make sure you're using the same secret key after the upgrade; otherwise, previously generated tokens forrecoverable,lockable, andconfirmablewill be invalid.#5645
Change password instructions button label on devise view from
Send me reset password instructionstoSend me password reset instructions#5515Change
<br>tags separating form elements to wrapping them in<p>tags #5494Replace
[data-turbo-cache=false]with[data-turbo-temporary]ondevise/shared/error_messagespartial. This has been deprecated by Turbo since v7.3.0 (released on Mar 1, 2023).If you are using an older version of Turbo and the default devise template, you'll need to copy it over to your app and change that back to
[data-turbo-cache=false].enhancements
Add Rails 8 support.
Devise.mappingscall. #5728New apps using Rack 3.1+ will be generated using
config.responder.error_status = :unprocessable_content, since:unprocessable_entityhas been deprecated by Rack.Latest versions of Rails transparently convert
:unprocessable_entity->:unprocessable_content, and Devise will use that in the failure app to avoid Rack deprecation warnings for apps that are configured with:unprocessable_entity. They can also simply change theirerror_statusto:unprocessable_contentin latest Rack versions to avoid the warning.Add Ruby 3.4 and 4.0 support.
Reenable Mongoid test suite across all Rails 7+ versions, to ensure we continue supporting it. Changes to dirty tracking to support Mongoid 8.0+. #5568
Password length validator is changed from
to
so it's possible to override
password_lengthat runtime. #5734bug fixes
Devisework withoutActionMailerwhenZeitwerkautoloader is used. #5731:fromand:reply_toas procs correctly by delegating to Rails #5595OmniAuth.config.allowed_request_methodsas routing verbs for the auth path #5508onandONas true values to check params #5514formatoption todevise_for#5732ActiveRecord::SecurityUtils.secure_compareinDevise.secure_compareto match two empty strings correctly. #4829401 Unauthorizedfor non-navigational requests to destroy the session when there is no authenticated resource. #4878Please check 4-stable
for previous changes.
v4.0.3Compare Source
v4.0.2Compare Source
v4.0.1Compare Source
v4.0.0Compare Source
v3.5.10Compare Source
v3.5.9Compare Source
v3.5.8Compare Source
v3.5.7Compare Source
v3.5.6Compare Source
v3.5.5Compare Source
v3.5.4Compare Source
v3.5.3Compare Source
confirmation_required?is disabled andconfirmation_sent_atis nil. (by @andygeers)emailfield to be recoverable (and do not clear thereset password token if the model was already persisted). (by @seddy, @stanhu)
Devise.send_password_change_notification = truea user will receive notification when their password has been changed.Configuration
📅 Schedule: (UTC)
🚦 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 was generated by Mend Renovate. View the repository job log.