Authentication Bypass in Devise
Published 11 Sept 2019 · Updated 16 Feb 2024
Is your project on an affected devise?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <4.7.1
- Fixed in
- 4.7.1
bundle update --conservative devise # Gemfile: '>= 4.7.1'Details
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.)
Is GHSA-fcjw-8rhj-gwwc in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected devise, and gives you the command that fixes it.
More advisories for devise
- MediumCVE-2026-40295Devise has an Open Redirect via Unvalidated `request.referrer` in Timeoutable Session Timeout Handler · 8 May 2026
- MediumCVE-2026-32700Devise has a confirmable "change email" race condition permits user to confirm email they have no access to · 17 Mar 2026
- HighCVE-2015-8314Devise Gem for Ruby Unauthorized Access Using "Remember Me" Cookie · 26 Jan 2023
- MediumCVE-2019-5421devise Time-of-check Time-of-use Race Condition vulnerability · 19 Mar 2019
- MediumCVE-2013-0233Devise does not properly perform type conversion when performing database queries · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-16109
- Linkgithub.com/plataformatec/devise/issues/5071
- Linkgithub.com/plataformatec/devise/pull/5132
- Packagegithub.com/plataformatec/devise
- Linkgithub.com/plataformatec/devise/compare/v4.7.0...v4.7.1
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/devise/CVE-2019-16109.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.