CVE-2019-16109: Authentication Bypass in Devise

devise Updated 02 Oct 2025

Summary

11/09/2019
Yes i
Moderate
5.3

CVE-2019-16109: Authentication Bypass in Devise. Affects devise versions < 4.7.1. Fixed in 4.7.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Devise is a RubyGem that provides flexible and customizable authentication solutions for Ruby on Rails applications. It handles user registration, authentication, and account management. Devise is widely used in the Ruby on Rails community and offers various features to ensure secure user authentication and authorization.

Vulnerability Detail

An authentication bypass vulnerability was discovered in Plataformatec Devise before version 4.7.1. This vulnerability allows an attacker to confirm user accounts by sending a request with a blank confirmation_token. If a database record has a blank value in the confirmation_token column, Devise mistakenly confirms the account. However, it is important to note that there is no scenario within Devise itself in which such database records would exist. The impact of this vulnerability is moderate, as it could potentially allow unauthorized access to user accounts.

How To Fix

Latest published version: 5.0.4 as of 22 Oct 2026

gem install devise -v 5.0.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.7.1

This is the first release that contains the fix.

gem install devise -v 4.7.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of Devise to mitigate the risk of authentication bypass.

Conclusion

The authentication bypass vulnerability in Devise before version 4.7.1 can potentially allow unauthorized access to user accounts. It is crucial to upgrade to the fixed version to mitigate this risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for devise →

Share this vulnerability

FAQ

Devise is a RubyGem that provides authentication solutions for Ruby on Rails applications. It handles user registration, authentication, and account management.

This vulnerability could potentially allow unauthorized access to user accounts.

To fix this vulnerability, upgrade to Devise version 4.7.1 or later.

No, there is no known workaround. It is crucial to upgrade to the fixed version of Devise.

Related vulnerabilities

Recent vulnerabilities recorded for devise.

How To Fix

Latest published version: 5.0.4 as of 22 Oct 2026

gem install devise -v 5.0.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.7.1

This is the first release that contains the fix.

gem install devise -v 4.7.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback