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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.0
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.38% (percentile 24, 2026-11-28)
- **CWE:** CWE-362
- **Aliases:** GHSA-57hq-95w6-v4fc
- **Published:** 2026-03-17T17:24:17.000Z
- **Modified:** 2026-06-17T10:36:13.897Z

## Who should check

- Projects that depend on RubyGems package devise (\< 5.0.3)
- Anyone running heartcombo devise \< 5.0.3

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

- RubyGems `devise`: affected \< 5.0.3; fixed 5.0.3 (osv)
- heartcombo devise: \< 5.0.3 (cvelist)

## Mitigation

- Upgrade devise to 5.0.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

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

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-32700>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-57hq-95w6-v4fc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-32700> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-32700>
