CVE-2026-32700: heartcombo devise · Race Condition
Affects heartcombo deviseSource CVE Database V5
Not known to be exploited · CVSS 6.0 Medium : upgrade to 5.0.3 when convenient.
Data as of 30 Oct 2026, 20:25 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.0.3
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 18 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade heartcombo devise to 5.0.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| heartcombodevise | Affected
| Fixed in
|
RubyGemsdevisepkg:gem/deviseOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The definitive mitigation is to upgrade all Devise instances to version 5.0.3 or later, where the race condition is patched. For organizations unable to upgrade immediately, a practical workaround involves overriding the Devise model method responsible for persisting the unconfirmed_email attribute to ensure it is saved even if unchanged, preventing desynchronization. Mongoid users should implement additional workarounds, such as setting changed_attributes["unconfirmed_email"] = nil, to force attribute persistence due to Mongoid's behavior. Developers should audit their codebase for concurrent email change request handling and consider implementing application-level synchronization or queuing mechanisms to prevent race conditions. Additionally, monitoring for unusual email confirmation activities and enforcing strict logging can help detect exploitation attempts. Regularly reviewing and testing authentication workflows for concurrency issues is recommended to prevent similar vulnerabilities.
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.
References
- github.com/heartcombo/devise/security/advisories/GHSA-57hq-95w6-v4fc (opens in a new tab)
- github.com/heartcombo/devise/issues/5783 (opens in a new tab)
- github.com/heartcombo/devise/pull/5784 (opens in a new tab)
- github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/GHSA-57hq-95w6-v4fc.yml (opens in a new tab)