CVE-2026-32700 Details
Description
Devise is an authentication solution for Rails based on Warden. Prior to version 5.0.3, 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. This is patched in Devise v5.0.3. Users should upgrade as soon as possible. As a workaround, applications can override a specific method from Devise models to force `unconfirmed_email` to be persisted when unchanged. Note that Mongoid does not seem to respect that `will_change!` should force the attribute to be persisted, even if it did not really change, so the user might have to implement a workaround similar to Devise by setting `changed_attributes["unconfirmed_email"] = nil` as well.
A race condition vulnerability has been identified in the Confirmable module of Devise, an authentication solution for Rails. This issue affects Devise versions through 5.0.2 and arises when the 'reconfirmable' option is enabled, which is the default setting for email changes. The vulnerability allows an attacker to confirm an email address they do not own by sending two simultaneous email change requests. This desynchronizes the 'confirmation_token' and 'unconfirmed_email' fields, leading to unauthorized email confirmation on the attacker's account.
Users are advised to upgrade to Devise version 5.0.3 or later. For applications that cannot upgrade, a workaround is to override the 'postpone_email_change_until_confirmation_and_regenerate_confirmation_token' method in the Devise model to ensure the 'unconfirmed_email' is properly saved. Note that Mongoid users may need to implement an additional workaround.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/heartcombo/devise/issues/5783 | CISA-ADP | Issue Tracking |
| https://github.com/heartcombo/devise/issues/5783 | [email protected] | Issue Tracking |
| https://github.com/heartcombo/devise/pull/5784 | [email protected] | Issue TrackingPatch |
| https://github.com/heartcombo/devise/security/advisories/GHSA-57hq-95w6-v4fc | [email protected] | Vendor Advisory |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/GHSA-57hq-95w6-v4fc.yml | [email protected] | Broken Link |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| heartcombo devise | < 5.0.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 26, 2026 | Initial Analysis | [email protected] |
| Mar 20, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | New CVE Received | [email protected] |