GHSA-qppm-g56g-fpvp

Suggest an improvement
Source
https://github.com/advisories/GHSA-qppm-g56g-fpvp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-qppm-g56g-fpvp/GHSA-qppm-g56g-fpvp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qppm-g56g-fpvp
Aliases
Published
2026-01-20T18:58:15Z
Modified
2026-02-03T03:11:18.973937Z
Severity
  • 1.7 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U CVSS Calculator
Summary
Turbo Frame responses can restore stale session cookies
Details

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: - Session state reversion after logout - Unintended restoration of previous authentication state

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: - The frame element is disconnected from the DOM - The frame's disabled attribute is set - The frame's src attribute is cleared

Workarounds

  • Use server-side session storage instead of a cookie store like Rails's cookie store
  • Ensure logout flows remove or disable Turbo Frame elements before invalidating sessions

References

  • https://github.com/hotwired/turbo/pull/1399
Database specific
{
    "nvd_published_at": "2026-01-20T19:15:49Z",
    "cwe_ids": [
        "CWE-362",
        "CWE-367",
        "CWE-613"
    ],
    "github_reviewed_at": "2026-01-20T18:58:15Z",
    "severity": "LOW",
    "github_reviewed": true
}
References

Affected packages

npm / @hotwired/turbo

Package

Name
@hotwired/turbo
View open source insights on deps.dev
Purl
pkg:npm/%40hotwired/turbo

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.0.21

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-qppm-g56g-fpvp/GHSA-qppm-g56g-fpvp.json"
last_known_affected_version_range
"<= 8.0.20"