Repository navigation
Conversation
devise 5.0.3 and 5.0.4 fix a confirmable email-change race (GHSA-57hq-95w6-v4fc) and an open redirect in timeoutable (GHSA-jp94-3292-c3xv), with no 4.x backport. Widening the constraint lets apps on Rails 7.0+ install the fixed versions, while apps on Rails 6.1 keep resolving to devise 4.
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.
devise has fixed two vulnerabilities in 5.0.3 and 5.0.4: a race in confirmable's change-email flow that lets a user confirm an address they don't control (GHSA-57hq-95w6-v4fc), and an open redirect through an unvalidated referrer in timeoutable (GHSA-jp94-3292-c3xv). Neither fix was backported to 4.x, and our
~> 4.0constraint kept every app on a vulnerable devise.This widens the constraint to
>= 4.3.0, < 6. Apps on Rails 7.0 or newer can now pick up the fixed devise 5, and apps still on Rails 6.1 continue to resolve to devise 4, since devise 5 requires Rails 7. The extension's specs pass unchanged against devise 5.0.4 on Rails 8.1.