CVE-2026-32700
Devise has a confirmable "change email" race condition that permits user to confirm email they have no access to
Also known as GHSA-57hq-95w6-v4fc
Mitigation
- Upgrade devise to 5.0.3 or later.
Who should check
- Projects that depend on RubyGems package devise (< 5.0.3)
- Anyone running heartcombo devise < 5.0.3
Vulnerability facts
- Affected
- devise < 5.0.3
- Fixed in
- 5.0.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, login needed
- CVSS
- 6.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.38% chance of exploitation in 30 days (percentile 24, 2026-11-26)
- CWE
- CWE-362
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems devise | < 5.0.3 | 5.0.3 | osv |
| heartcombo devise | < 5.0.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-32700. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-32700.md Affected: devise < 5.0.3 Fixed in: 5.0.3 Steps: 1. Search this machine and project for devise (RubyGems), heartcombo devise: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
FAQ
Is CVE-2026-32700 being exploited?
There is no confirmed exploitation: CVE-2026-32700 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.38% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-32700?
Medium: CVSS 6.0 (v4.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-32700?
devise < 5.0.3.
Is there a fix for CVE-2026-32700?
Yes. Fixed in 5.0.3. Upgrade devise to 5.0.3 or later.
How do I check if I'm affected by CVE-2026-32700?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.