@hotwired/turbo
Affected
- introduced
0, fixed8.0.21(semver)
Fixed versions
8.0.21
Fix
- Fixed version
8.0.21npm install @hotwired/[email protected]
Advisory
Also known as: CVE-2025-66803
Turbo Frame responses can restore stale session cookies
Summary
A race condition in Turbo Frames allows delayed HTTP responses to restore stale session cookies after session-modifying operations.
Details
Browsers automatically process Set-Cookie headers from HTTP responses. When a Turbo Frame request is in-flight during a session-modifying action (such as logout), the delayed response may include a Set-Cookie header reflecting the session state at request time. This can result in stale session cookies being restored after the session was intentionally modified or invalidated.
This condition can occur naturally on slow networks. An active network attacker capable of delaying responses could potentially exploit this to restore previous session state.
### Impact
Applications using Turbo Frames with cookie-based session storage may experience:
The impact is limited to applications using client-side cookie storage for sessions. Applications using server-side session stores (Redis, database, etc.) are not meaningfully affected, as the server-side session state remains authoritative.
Patches
Upgrade to Turbo 8.0.21 or later. The fix cancels in-flight Turbo Frame requests when:
Workarounds
References
Low Basis: The source's own band: LOW
0, fixed 8.0.21 (semver)8.0.21
8.0.21npm install @hotwired/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0