Open Redirect Affecting devise package, versions <5.0.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-DEVISE-16540559
  • published8 May 2026
  • disclosed8 May 2026
  • creditUnknown

Introduced: 8 May 2026

NewCVE-2026-40295  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade devise to version 5.0.4 or higher.

Overview

devise is a flexible authentication solution for Rails with Warden.

Affected versions of this package are vulnerable to Open Redirect in the FailureApp#redirect_url method when handling non-GET requests after a session timeout. An attacker can cause users to be redirected to arbitrary external URLs by crafting a page with an auto-submitting cross-origin form or by enticing victims to click malicious links, potentially leading to phishing or credential theft.

CVSS Base Scores

version 4.0
version 3.1