Remediation:
Upgrade to @hotwired/turbo-rails@8.0.0.
Overview
@hotwired/turbo is a The speed of a single-page web application without having to write any JavaScript
Affected versions of this package are vulnerable to Insufficient Session Expiration due to a race condition. An attacker can cause stale session cookies to be restored by delaying HTTP responses containing Set-Cookie headers, potentially reverting session state after it has been modified or invalidated. This is only exploitable if the application uses client-side cookie-based session storage for sessions.
Workaround
This vulnerability can be mitigated by using server-side session storage instead of client-side cookies, or by ensuring logout flows remove or disable Turbo Frame elements before invalidating sessions.
Remediation
Upgrade @hotwired/turbo to version 8.0.21 or higher.