{"cve":"CVE-2026-32700","nvd":{"published":"2026-03-18T21:16:26.943","modified":"2026-06-17T10:36:13.897","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":6.0},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.3},"cwes":["CWE-362"],"references":["https://github.com/heartcombo/devise/issues/5783","https://github.com/heartcombo/devise/pull/5784","https://github.com/heartcombo/devise/security/advisories/GHSA-57hq-95w6-v4fc","https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/GHSA-57hq-95w6-v4fc.yml","https://github.com/heartcombo/devise/issues/5783"],"products":["heartcombo:devise"],"source":"nvd","synced_at":"2026-10-19T22:26:19.218427112+00:00"},"epss":{"cve":"CVE-2026-32700","score":0.00286,"percentile":0.21187,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-57hq-95w6-v4fc","url":"https://osv.dev/vulnerability/GHSA-57hq-95w6-v4fc","summary":"Devise has a confirmable \"change email\" race condition permits user to confirm email they have no access to","modified":"2026-03-30T14:05:52.117034Z","packages":[{"ecosystem":"RubyGems","name":"devise","purl":"pkg:gem/devise","ranges":["<5.0.3"],"fixed":["5.0.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}