VYPR
Moderate severityNVD Advisory· Published Sep 8, 2019· Updated Aug 5, 2024

CVE-2019-16109

CVE-2019-16109

Description

An issue was discovered in Plataformatec Devise before 4.7.1. It confirms accounts upon receiving a request with a blank confirmation_token, if a database record has a blank value in the confirmation_token column. (However, there is no scenario within Devise itself in which such database records would exist.)

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Devise before 4.7.1 confirms accounts when receiving a blank confirmation_token, if the database record has a blank token, enabling unauthorized account confirmation.

Devise is a flexible authentication solution for Rails [1]. The vulnerability in the Confirmable module incorrectly verifies account confirmation: if the stored confirmation_token is blank, a request with a blank confirmation_token parameter will confirm the account without proper validation [2][3].

Attackers can exploit this by sending a request to the confirmation endpoint with an empty confirmation_token. The prerequisite is that a user record has a blank confirmation_token column, which is unlikely under normal Devise operation but could occur via custom code or direct database manipulation [2][3].

Successful exploitation allows an attacker to confirm an account without authorization, potentially gaining access to an account that was not fully confirmed [2].

The issue is patched in Devise 4.7.1. The fix ensures that a blank confirmation_token always returns an error [3]. For applications that already have users with a blank confirmation_token in the database, it is recommended to manually regenerate or nullify those tokens [3][4].

AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
deviseRubyGems
< 4.7.14.7.1

Affected products

2
  • Plataformatec/Devisedescription
  • ghsa-coords
    Range: < 4.7.1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

6

News mentions

0

No linked articles in our index yet.