MediumGHSA-jxhw-mg8m-2pj8CVE-2013-0233

Devise does not properly perform type conversion when performing database queries

Published 24 Oct 2017 · Updated 3 Dec 2024

Is your project on an affected devise?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

deviseRubyGems
Affected
>=2.2.0 <2.2.3
Fixed in
2.2.3
Update to the fixed version for your release line, for example:bundle update --conservative devise # Gemfile: '>= 2.2.3'
deviseRubyGems
Affected
>=2.1.0 <2.1.3
Fixed in
2.1.3
Update to the fixed version for your release line, for example:bundle update --conservative devise # Gemfile: '>= 2.1.3'
deviseRubyGems
Affected
>=2.0.0 <2.0.5
Fixed in
2.0.5
Update to the fixed version for your release line, for example:bundle update --conservative devise # Gemfile: '>= 2.0.5'
deviseRubyGems
Affected
>=1.5.0 <1.5.4
Fixed in
1.5.4
Update to the fixed version for your release line, for example:bundle update --conservative devise # Gemfile: '>= 1.5.4'

Details

Devise gem 2.2.x before 2.2.3, 2.1.x before 2.1.3, 2.0.x before 2.0.5, and 1.5.x before 1.5.4 for Ruby, when using certain databases, does not properly perform type conversion when performing database queries, which might allow remote attackers to cause incorrect results to be returned and bypass security checks via unknown vectors, as demonstrated by resetting passwords of arbitrary accounts.

Is GHSA-jxhw-mg8m-2pj8 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-16109Authentication Bypass in Devise · 11 Sept 2019
  • MediumCVE-2019-5421devise Time-of-check Time-of-use Race Condition vulnerability · 19 Mar 2019
devise security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.