CVE-2026-40295
medium
CVSS v3
6.1
CVSS v4 NEW
โ
VIR risk
6.1
Description
Devise has an Open Redirect via Unvalidated `request.referrer` in Timeoutable Session Timeout Handler
Predictions
Exploit likelihood
71%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Affected 2 releases
| Version | Status | Fixed in |
|---|---|---|
| bullseye | Affected | โ |
| bookworm | Affected | โ |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| heartcombo | devise | {"endExcluding":"5.0.4"} | 5.0.4 |
References
- https://github.com/heartcombo/devise/security/advisories/GHSA-jp94-3292-c3xv
- https://github.com/heartcombo/devise/commit/025fe2124f9928766fc46520e999633b598d0360
- https://github.com/heartcombo/devise
- https://security-tracker.debian.org/tracker/CVE-2026-40295
- https://github.com/advisories/GHSA-jp94-3292-c3xv
- https://nvd.nist.gov/vuln/detail/CVE-2026-40295
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise/CVE-2026-40295.yml
CWEs
CWE-601
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.