CVE-2026-32700

Source
https://cve.org/CVERecord?id=CVE-2026-32700
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-32700.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-32700
Aliases
Downstream
Published
2026-03-18T20:55:55.034Z
Modified
2026-04-10T05:43:00.952624Z
Severity
  • 6.0 (Medium) CVSS_V4 - 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 Calculator
Summary
Devise has a confirmable "change email" race condition that permits user to confirm email they have no access to
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-362"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32700.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/heartcombo/devise

Affected ranges

Type
GIT
Repo
https://github.com/heartcombo/devise
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "5.0.3"
        }
    ]
}

Affected versions

v0.*
v0.7.5
v0.8.0
v0.8.1
v0.8.2
v0.9.0
v0.9.1
v1.*
v1.0.0
v1.0.1
v1.1.0
v1.1.pre
v1.1.pre2
v1.1.pre3
v1.1.pre4
v1.1.rc0
v1.1.rc1
v1.1.rc2
v1.2.0
v1.2.rc
v1.2.rc2
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.4.2
v1.4.3
v1.4.4
v1.4.6
v1.4.7
v1.5.0
v1.5.0.rc
v1.5.0.rc1
v1.5.1
v2.*
v2.0.0
v2.0.0.rc
v2.0.0.rc2
v2.0.1
v2.0.2
v2.0.3
v2.1.0
v2.1.0.rc
v2.1.0.rc2
v2.1.1
v2.1.2
v2.2.0
v2.2.0.rc
v2.2.1
v2.2.2
v2.2.3
v2.2.4
v3.*
v3.0.0
v3.0.0.rc
v3.0.1
v3.1.0
v3.1.0.rc
v3.1.0.rc2
v3.2.0
v3.2.1
v3.2.2
v3.2.3
v3.2.4
v3.3.0
v3.4.0
v3.4.1
v3.5.0
v3.5.1
v3.5.2
v3.5.3
v4.*
v4.0.0
v4.0.0.rc1
v4.0.0.rc2
v4.0.1
v4.1.0
v4.2.0
v4.2.1
v4.3.0
v4.4.0
v4.4.1
v4.4.2
v4.4.3
v4.5.0
v4.6.0
v4.6.1
v4.6.2
v4.7.0
v4.7.1
v4.7.2
v4.8.0
v4.8.1
v4.9.0
v4.9.1
v4.9.2
v5.*
v5.0.0
v5.0.0.rc
v5.0.1
v5.0.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-32700.json"