CVE-2026-32700: Devise Devise Has A Confirmable "change Vulnerability
MODERATECVE-2026-32700 is a MODERATE (CVSS 5.3) devise has a confirmable "change vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Devise libraries in the RubyGems ecosystem. The issue involves devise has a confirmable "change email" race condition permits user to confirm email they have no access to. Remediation is available by upgrading affected packages to version 5.0.3.
CVE-2026-32700 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-32700
To remediate this vulnerability, upgrade all affected Devise dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade devise to 5.0.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for devise
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-32700, inspect your project dependencies for Devise:
inspect dependencies for devise
Analyze the terminal output to locate any version of Devise in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Devise, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-32700 Affected Devise Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
devise
|
RubyGems |
< 5.0.3
|
5.0.3
|
References
Frequently Asked Questions
What is CVE-2026-32700?
Which Devise versions are affected?
What version fixes CVE-2026-32700?
Is devise affected?
What is the CVSS score of CVE-2026-32700?
What CWE is associated with CVE-2026-32700?
How can I check RubyGems dependencies for CVE-2026-32700?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-57hq-95w6-v4fc",
"modified" : "2026-03-30T13:49:02Z",
"published" : "2026-03-17T17:24:17Z",
"aliases" : [ "CVE-2026-32700" ],
"summary" : "Devise has a confirmable \"change email\" race condition permits user to confirm email they have no access to",
"details" : "### Impact\n\nA 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).\n\nBy 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.\n\n### Patches\n\nThis is patched in Devise **v5.0.3**. Users should upgrade as soon as possible.\n\n### Workarounds\n\nApplications can override this specific method from Devise models to force `unconfirmed_email` to be persisted when unchanged: (assuming your model is `User`)\n\n```ruby\nclass User < ApplicationRecord\n protected\n\n def postpone_email_change_until_confirmation_and_regenerate_confirmation_token\n unconfirmed_email_will_change!\n super\n end\nend\n```\n\nNote: Mongoid does not seem to respect that `will_change!` should force the attribute to be persisted, even if it did not really change, so you might have to implement a workaround similar to Devise by setting `changed_attributes[\"unconfirmed_email\"] = nil` as well.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "devise"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.0.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/heartcombo/devise/security/advisories/GHSA-57hq-95w6-v4fc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32700"
}, {
"type" : "WEB",
"url" : "https://github.com/heartcombo/devise/issues/5783"
}, {
"type" : "WEB",
"url" : "https://github.com/heartcombo/devise/pull/5784"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/heartcombo/devise"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/CVE-2026-32700.yml"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/GHSA-57hq-95w6-v4fc.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-17T17:24:17Z",
"nvd_published_at" : "2026-03-18T21:16:26Z"
}
}