SCA: security update for devise (GHSA-57hq-95w6-v4fc)

medium Tenable Self-Hosted Container Security Plugin ID 438890

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-32700)

Solution

Update the devise library and its related packages to version 5.0.3 or later.

See Also

https://github.com/advisories/GHSA-57hq-95w6-v4fc

Plugin Details

Severity: Medium

ID: 438890

Version: Revision 1.11

Type: Local

Family: SCA Checks

Published: 3/17/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.73

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 4.9

Temporal Score: 3.6

Vector: CVSS2#AV:N/AC:H/Au:S/C:N/I:C/A:N

CVSS Score Source: CVE-2026-32700

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6

Threat Score: 2.3

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/17/2026

Vulnerability Publication Date: 3/17/2026

Reference Information

CVE: CVE-2026-32700

cwe: CWE-362