Hotwired Turbo Race Condition Vulnerability in Turbo Frames Allowing Session Cookie Restoration

Vulnerability

A race condition vulnerability has been identified in Hotwired Turbo versions prior to 8.0.x, specifically within the turbo-frame element handler. This vulnerability causes logout operations to fail by allowing delayed frame responses to reapply session cookies after a logout has been processed. Remote attackers could exploit this by introducing selective network delays, while physically proximate attackers could take advantage of the vulnerability on shared computers.

Impact

Exploitation of this vulnerability can lead to unintended session state reversion, causing users to be logged back in after logging out, without their knowledge.

Reproduction

The vulnerability can be reproduced by initiating a logout process while a turbo-frame request is still being processed. This can be done by clicking a logout button and then delaying the response of the turbo-frame request, which will cause the stale session cookie to be reapplied after logout.

Remediation

Users can upgrade to Turbo version 8.0.21 or later, where this vulnerability has been patched. For applications using cookie-based session storage, it is recommended to switch to server-side session storage or ensure that Turbo Frame elements are removed or disabled before logging out.

Added: Jan 20, 2026, 8:43 PM
Updated: Jan 20, 2026, 8:43 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
6.3
remediation
0.0
relevance
2.2
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.