# CVE-2026-32700: Devise has a confirmable "change email" race condition that permits user to confirm email they have no access to

- Severity: Medium 6.0 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-17T17:24:17.000Z
- Modified: 2026-06-17T10:36:13.897Z
- Also known as: GHSA-57hq-95w6-v4fc
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- heartcombo devise: < 5.0.3; before 5.0.3
- devise (RubyGems): before 5.0.3

## Every score

- GitHub_M: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/heartcombo/devise/issues/5783> (exploit, issue-tracking, web)
- <https://github.com/heartcombo/devise/security/advisories/GHSA-57hq-95w6-v4fc> (vendor-advisory, web)
- <https://github.com/heartcombo/devise/pull/5784> (issue-tracking, patch, web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/GHSA-57hq-95w6-v4fc.yml> (broken-link, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32700> (advisory)
- <https://github.com/heartcombo/devise> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/CVE-2026-32700.yml> (web)

## Sources

- CVE List: [CVE-2026-32700](https://www.cve.org/CVERecord?id=CVE-2026-32700), CVE Terms of Use, modified 2026-03-20
- GitHub Advisory Database: [GHSA-57hq-95w6-v4fc](https://github.com/advisories/GHSA-57hq-95w6-v4fc), CC-BY-4.0, modified 2026-03-30
- NVD: [CVE-2026-32700](https://nvd.nist.gov/vuln/detail/CVE-2026-32700), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32700 · Whole record: https://cve.day/CVE-2026-32700.json · Rebuilt by cve.day 2026-11-25T22:59:16.140Z
