{"answers":{"affected":"2 open source packages ship an affected version, including devise. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32700 exists.","fix":"Upgrade devise to 5.0.3 or later.","what":"CVE-2026-32700 is a medium-severity vulnerability in heartcombo devise, published on 18 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-32700 and fix it if it is affected.\n\nWhat it is: CVE-2026-32700 is a medium-severity vulnerability in heartcombo devise, published on 18 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32700 exists.\n\nAffected packages and fixed versions:\n- devise (RubyGems): affected all versions; fixed in 5.0.3\n- devise (RubyGems): affected all versions; fixed in 5.0.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-32700/ (Markdown: https://insights.sbomify.com/CVE-2026-32700/index.md)","id":"CVE-2026-32700","markdown":"https://insights.sbomify.com/CVE-2026-32700/index.md","name":"CVE-2026-32700","record":{"aliases":["DEBIAN-CVE-2026-32700","GHSA-57hq-95w6-v4fc","UBUNTU-CVE-2026-32700"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby authentication library","requires_auth":"low_privilege","summary":"Attackers can confirm email addresses they do not own via a race condition in Devise's Confirmable module, potentially taking over accounts.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"devise","vendor":"heartcombo"}],"cvss":{"score":6,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Devise has a confirmable \"change email\" race condition that permits user to confirm email they have no access to","id":"CVE-2026-32700","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"race_condition","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Qwik has array method pollution in FormData processing, allowing type confusion and DoS","id":"CVE-2026-32701"},"packages":[{"ecosystem":"RubyGems","fixed":["5.0.3"],"introduced":["0"],"last_affected":[],"package":"devise","purl":null,"source":"GHSA-57hq-95w6-v4fc"},{"ecosystem":"RubyGems","fixed":["5.0.3"],"introduced":["0"],"last_affected":[],"package":"devise","purl":"pkg:gem/devise","source":"GHSA-57hq-95w6-v4fc"}],"prev":{"headline":"FacturaScripts unauthorized modification of immutable nick field via EditUser controller","id":"CVE-2026-32699"},"products":["devise"],"published":"2026-03-18","related":[{"cvss_score":7.5,"headline":"Devise Gem for Ruby Unauthorized Access Using \"Remember Me\" Cookie","id":"CVE-2015-8314","kev_date_added":null,"published":"2023-12-12"},{"cvss_score":6.1,"headline":"Devise: Open Redirect via Unvalidated `request.referrer` in Timeoutable Session Timeout Handler","id":"CVE-2026-40295","kev_date_added":null,"published":"2026-05-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-20","vendors":["heartcombo"]},"summary":"Attackers can confirm email addresses they do not own via a race condition in Devise's Confirmable module, potentially taking over accounts.","url":"https://insights.sbomify.com/CVE-2026-32700/"}