CVE-2026-40295
Devise has an Open Redirect via Unvalidated `request.referrer` in Timeoutable Session Timeout Handler
Summary
Remediation
Upgrade to the fixed version using your package manager.
gem install devise -v 5.0.4
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| devise | rubygems | 0.1.0, 0.1.1, 0.2.0, 0.2.1 (+168 more) | 5.0.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-601Open RedirectMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/heartcombo/devise/security/advisories/GHSA-jp94-3292-c3xvWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40295ADVISORY
- https://github.com/heartcombo/devise/commit/025fe2124f9928766fc46520e999633b598d0360WEB
- https://github.com/heartcombo/devisePACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/CVE-2026-40295.ymlWEB
Frequently Asked Questions
- What is CVE-2026-40295?
- Devise has an Open Redirect via Unvalidated `request.referrer` in Timeoutable Session Timeout Handler This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2026-40295?
- CVE-2026-40295 affects devise. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40295 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2015-8314HIGH
Devise Gem for Ruby Unauthorized Access Using "Remember Me" Cookie
- CVE-2026-71437MEDIUM
Mermaid Architecture diagrams are vulnerable to prototype pollution
- CVE-2026-32700MEDIUM
Devise has a confirmable "change email" race condition permits user to confirm email they have no access to
- CVE-2026-54765MEDIUM
Traefik: Gateway HTTPRoute backendRef filters can leak backend context across routes sharing a Service:port
- CVE-2026-62909MEDIUM
Microsoft Security Advisory CVE-2026-62909 – .NET Elevation of Privilege Vulnerability
- CVE-2026-62902MEDIUM
Microsoft Security Advisory CVE-2026-62902 – .NET Information Disclosure Vulnerability
- CVE-2026-61807MEDIUM
Snipe-IT: Stored DOM XSS via table selected-count IDs
- CVE-2026-62899MEDIUM
Microsoft Security Advisory CVE-2026-62899 – .NET Security Feature Bypass Vulnerability
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies