Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-40295: Devise is an authentication solution for Rails based on Warden

25
Routine
MEDIUM 6.1UPGRADE

CVE-2026-40295 is a medium-severity flaw (CVSS 6.1) affecting devise. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 Dev

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score6.1 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.2% (top 85%)
CISA exploited listNo
WeaknessCWE-601
Published2026-05-22
Last modified2026-07-23
Publisher (CNA): GitHub, Inc. · Vendor: heartcombo

Share: LinkedIn · X · Reddit

Last updated 2026-07-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

heartcombo devise UPGRADE
Affected: < 5.0.4
Fixed in: 5.0.4
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy devise || rpm -q devise || devise --version
2. UPGRADE to 5.0.4 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade devise
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade devise
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-40295?

devise: upgrade to 5.0.4. Exact commands for each OS are on this page.

Is CVE-2026-40295 being exploited?

CVE-2026-40295 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-40295 affect?

CVE-2026-40295 affects devise. Severity is medium (CVSS 6.1). 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 a

How urgent is CVE-2026-40295?

Priority 25/100. No elevated risk signals yet.

Software pages

Ruby on Rails vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.