CVE Explorer
CVE-2026-40295
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 exter
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"devise","vendor":"heartcombo","versions":[{"status":"affected","version":"< 5.0.4"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:28fb48b06e8ac92a2d4cc108c50bf164e3cffa2bbb5a4202b954624af88c4eb5 · sha256:9bef39e89382ecc1… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:28fb48b06e8ac92a2d4cc108c50bf164e3cffa2bbb5a4202b954624af88c4eb5 · sha256:9bef39e89382ecc1… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-601","description":"CWE-601: URL Redirection to Untrusted Site ('Open Redirect')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:28fb48b06e8ac92a2d4cc108c50bf164e3cffa2bbb5a4202b954624af88c4eb5 · sha256:9bef39e89382ecc1… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/heartcombo/devise/commit/025fe2124f9928766fc46520e999633b598d0360","tags":["x_refsource_MISC"],"url":"https://github.com/heartcombo/devise/commit/025fe2124f9928766fc46520e999633b598d0360"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:28fb48b06e8ac92a2d4cc108c50bf164e3cffa2bbb5a4202b954624af88c4eb5 · sha256:9bef39e89382ecc1… · /containers/cna/references/1
{"name":"https://github.com/heartcombo/devise/security/advisories/GHSA-jp94-3292-c3xv","tags":["x_refsource_CONFIRM"],"url":"https://github.com/heartcombo/devise/security/advisories/GHSA-jp94-3292-c3xv"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:28fb48b06e8ac92a2d4cc108c50bf164e3cffa2bbb5a4202b954624af88c4eb5 · sha256:9bef39e89382ecc1… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.