Skip to content

Allow devise 5 - #57

Draft
parndt wants to merge 1 commit into
masterfrom
devise-5
Draft

parndt wants to merge 1 commit into
masterfrom
devise-5

Conversation

@parndt

@parndt parndt commented Nov 22, 2026

Copy link
Copy Markdown
Member

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.0 constraint 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.

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant