🛡️ CVE-2026-40295 on Debian — ruby-devise
Description
Devise is an authentication solution for Rails based on Warden. In versions 5.0.3 and below, when the Timeoutable module is enabled in Devise, the FailureApp#redirect_url method returns request.referrer — the HTTP Referer header, which is attacker-controllable — without validation for any non-GET request that results in a session timeout. An attacker who hosts a page with an auto-submitting cross-origin form can cause a victim with an expired Devise session to be redirected to an arbitrary external URL. This contrasts with the GET timeout path (which uses server-side attempted_path) and Devise's own store_location_for mechanism (which strips external hosts via extract_path_from_location), both of which are protected; only the non-GET timeout redirect path is unprotected. Expired-session users can be silently redirected from the trusted app domain to attacker-controlled URLs, enabling phishing and malware delivery while bypassing browser warnings. Note: Rails' built-in open-redirect protection does not mitigate this issue. Devise::FailureApp is an ActionController::Metal app with its own isolated copy of the relevant redirect configuration, so config.action_controller.action_on_open_redirect = :raise (and the older raise_on_open_redirects setting) do not reach it. This issue has been fixed in version 5.0.4.
Distribution advisory
This page covers CVE-2026-40295 as tracked by Debian, for the package ruby-devise. No fixed version has been recorded for this distribution yet.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Affected software
DEBIAN-CVE-2026-40295 is recorded against 1 package.
- ruby-devise
Timeline and source
Published on 22 May 2026 and last revised on 4 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2026-40295 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| ruby-devise | — | — |
References
Similar Threats
- Unknown UBUNTU-CVE-2026-40295
- Unknown DEBIAN-CVE-2026-32700
- Unknown UBUNTU-CVE-2026-32700
- Unknown USN-7050-1
- Unknown DEBIAN-CVE-2024-8796
More DEBIAN CVE 2026 advisories
Browse all of DEBIAN CVE 2026 in the advisory index.
- DEBIAN-CVE-2026-40250
- DEBIAN-CVE-2026-40251
- DEBIAN-CVE-2026-40253
- DEBIAN-CVE-2026-40254
- DEBIAN-CVE-2026-40257
- DEBIAN-CVE-2026-40260
- DEBIAN-CVE-2026-40261
- DEBIAN-CVE-2026-40290
- DEBIAN-CVE-2026-40310
- DEBIAN-CVE-2026-40311
- DEBIAN-CVE-2026-40312
- DEBIAN-CVE-2026-40333
- DEBIAN-CVE-2026-40334
- DEBIAN-CVE-2026-40335
- DEBIAN-CVE-2026-40336
- DEBIAN-CVE-2026-40338
Vulnerability Monitoring
Track new vulnerabilities in ruby-devise
DEBIAN-CVE-2026-40295 is rated CVSS 6.1 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.