Ruby/devise/5.0.0.rc
Flexible authentication solution for Rails with Warden
https://rubygems.org/gems/devise
MIT
1 Security Vulnerabilities
Devise has a confirmable "change email" race condition permits user to confirm email they have no access to
- https://github.com/heartcombo/devise/security/advisories/GHSA-57hq-95w6-v4fc
- https://github.com/heartcombo/devise/issues/5783
- https://github.com/heartcombo/devise/pull/5784
- https://github.com/advisories/GHSA-57hq-95w6-v4fc
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/GHSA-57hq-95w6-v4fc.yml
- https://nvd.nist.gov/vuln/detail/CVE-2026-32700
Impact
A race condition in Devise's Confirmable module allows an attacker to confirm an email address they do not own. This affects any Devise application using the reconfirmable option (the default when using Confirmable with email changes).
By sending two concurrent email change requests, an attacker can desynchronize the confirmation_token and unconfirmed_email fields. The confirmation token is sent to an email the attacker controls, but the unconfirmed_email in the database points to a victim's email address. When the attacker uses the token, the victim's email is confirmed on the attacker's account.
Patches
This is patched in Devise v5.0.3. Users should upgrade as soon as possible.
Workarounds
Applications can override this specific method from Devise models to force unconfirmed_email to be persisted when unchanged: (assuming your model is User)
class User < ApplicationRecord
protected
def postpone_email_change_until_confirmation_and_regenerate_confirmation_token
unconfirmed_email_will_change!
super
end
end
Note: Mongoid does not seem to respect that will_change! should force the attribute to be persisted, even if it did not really change, so you might have to implement a workaround similar to Devise by setting changed_attributes["unconfirmed_email"] = nil as well.
172 Other Versions
| Version | License | Security | Released | |
|---|---|---|---|---|
| 1.3.4 | UNKNOWN | 9 | 2011-04-29 - 12:16 | almost 15 years |
| 1.3.3 | UNKNOWN | 9 | 2011-04-21 - 17:19 | almost 15 years |
| 1.3.2 | UNKNOWN | 9 | 2011-04-21 - 12:00 | almost 15 years |
| 1.3.1 | UNKNOWN | 9 | 2011-04-19 - 08:40 | almost 15 years |
| 1.3.0 | UNKNOWN | 9 | 2011-04-16 - 11:32 | almost 15 years |
| 1.2.1 | UNKNOWN | 9 | 2011-03-28 - 18:52 | almost 15 years |
| 1.2.0 | UNKNOWN | 9 | 2011-03-25 - 14:56 | almost 15 years |
| 1.2.rc2 | UNKNOWN | 9 | 2011-03-11 - 19:57 | about 15 years |
| 1.2.rc | UNKNOWN | 9 | 2010-11-26 - 11:30 | over 15 years |
| 1.1.9 | UNKNOWN | 9 | 2011-03-25 - 14:52 | almost 15 years |
| 1.1.8 | UNKNOWN | 9 | 2011-03-11 - 20:23 | about 15 years |
| 1.1.7 | UNKNOWN | 9 | 2011-02-16 - 20:04 | about 15 years |
| 1.1.6 | UNKNOWN | 9 | 2011-02-15 - 10:19 | about 15 years |
| 1.1.5 | UNKNOWN | 9 | 2010-11-27 - 20:53 | over 15 years |
| 1.1.4 | UNKNOWN | 9 | 2010-11-26 - 12:18 | over 15 years |
| 1.1.3 | UNKNOWN | 9 | 2010-09-24 - 07:39 | over 15 years |
| 1.1.2 | UNKNOWN | 9 | 2010-08-25 - 11:45 | over 15 years |
| 1.1.1 | UNKNOWN | 9 | 2010-07-27 - 14:29 | over 15 years |
| 1.1.0 | UNKNOWN | 9 | 2010-07-26 - 18:25 | over 15 years |
| 1.1.pre4 | UNKNOWN | 9 | 2010-03-03 - 11:22 | about 16 years |
| 1.1.pre3 | UNKNOWN | 9 | 2010-02-24 - 21:20 | about 16 years |
| 1.1.pre2 | UNKNOWN | 9 | 2010-02-18 - 17:06 | about 16 years |
| 1.1.pre | UNKNOWN | 9 | 2010-02-17 - 12:57 | about 16 years |
| 1.1.rc2 | UNKNOWN | 9 | 2010-06-23 - 10:39 | over 15 years |
| 1.1.rc1 | UNKNOWN | 9 | 2010-04-15 - 06:45 | almost 16 years |
| 1.1.rc0 | UNKNOWN | 9 | 2010-04-03 - 11:20 | almost 16 years |
| 1.0.11 | UNKNOWN | 9 | 2011-03-11 - 20:45 | about 15 years |
| 1.0.10 | UNKNOWN | 9 | 2011-02-15 - 19:27 | about 15 years |
| 1.0.9 | UNKNOWN | 9 | 2010-11-26 - 12:26 | over 15 years |
| 1.0.8 | UNKNOWN | 9 | 2010-06-23 - 10:22 | over 15 years |
| 1.0.7 | UNKNOWN | 9 | 2010-05-03 - 11:58 | almost 16 years |
| 1.0.6 | UNKNOWN | 9 | 2010-04-03 - 11:25 | almost 16 years |
| 1.0.5 | UNKNOWN | 9 | 2010-03-26 - 12:04 | almost 16 years |
| 1.0.4 | UNKNOWN | 9 | 2010-03-03 - 11:24 | about 16 years |
| 1.0.3 | UNKNOWN | 9 | 2010-02-23 - 14:45 | about 16 years |
| 1.0.2 | UNKNOWN | 9 | 2010-02-17 - 20:32 | about 16 years |
| 1.0.1 | UNKNOWN | 9 | 2010-02-15 - 13:19 | about 16 years |
| 1.0.0 | UNKNOWN | 9 | 2010-02-09 - 01:17 | about 16 years |
| 0.9.2 | UNKNOWN | 9 | 2010-02-05 - 20:37 | about 16 years |
| 0.9.1 | UNKNOWN | 9 | 2010-01-25 - 19:22 | about 16 years |
| 0.9.0 | UNKNOWN | 9 | 2010-01-21 - 14:31 | about 16 years |
| 0.8.2 | UNKNOWN | 9 | 2010-01-13 - 16:47 | about 16 years |
| 0.8.1 | UNKNOWN | 9 | 2010-01-08 - 22:27 | about 16 years |
| 0.8.0 | UNKNOWN | 9 | 2010-01-07 - 21:50 | about 16 years |
| 0.7.5 | UNKNOWN | 9 | 2010-01-02 - 09:12 | about 16 years |
| 0.7.4 | UNKNOWN | 9 | 2009-12-22 - 21:05 | about 16 years |
| 0.7.3 | UNKNOWN | 9 | 2009-12-16 - 00:29 | over 16 years |
| 0.7.2 | UNKNOWN | 9 | 2009-12-15 - 00:05 | over 16 years |
| 0.7.1 | UNKNOWN | 9 | 2009-12-08 - 22:40 | over 16 years |
| 0.7.0 | UNKNOWN | 9 | 2009-12-07 - 23:00 | over 16 years |
