Vulnerabilities in pkg:npm/@hotwired/turbo

PACKAGE
Advisory Identifier: GHSA-qppm-g56g-fpvp
Advisory Summary

CVE-2025-66803 is a LOW turbo frame responses can restore vulnerability (CWE-613: Insufficient Session Expiration) affecting @hotwired/turbo libraries in the npm ecosystem. The issue involves turbo frame responses can restore stale session cookies. Remediation is available by upgrading affected packages to version 8.0.21.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@hotwired/turbo

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@hotwired/turbo. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-qppm-g56g-fpvp CVE-2025-66803 LOW Turbo Frame responses can restore stale session cookies

CVE-2025-66803 at a Glance

CVE Identifier CVE-2025-66803
GHSA Identifier GHSA-qppm-g56g-fpvp
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product @hotwired/turbo
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-66803

To remediate this vulnerability, upgrade all affected @hotwired/turbo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@hotwired/turbo fixed: 8.0.21
npm install @hotwired/turbo@8.0.21
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @hotwired/turbo

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-66803, inspect your project dependencies using npm:

npm ls @hotwired/turbo

Analyze the terminal output to locate any version of @hotwired/turbo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.21), your application is affected.

Note: The npm ls @hotwired/turbo command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In @hotwired/turbo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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

CVE-2025-66803 Affected @hotwired/turbo Versions

1 component(s)
Fixed Versions:
8.0.21
Product / Package Ecosystem Affected Versions Fixed Version
@hotwired/turbo
npm
< 8.0.21
8.0.21

References

Frequently Asked Questions

What is CVE-2025-66803?
CVE-2025-66803 is a security vulnerability in @hotwired/turbo involving Turbo Frame responses can restore stale session cookies under CWE-613: Insufficient Session Expiration.
Which @hotwired/turbo versions are affected?
Affected versions include releases prior to 8.0.21 across affected packages: @hotwired/turbo.
What version fixes CVE-2025-66803?
Upgrading to 8.0.21 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @hotwired/turbo affected?
Yes, @hotwired/turbo is affected in releases prior to 8.0.21. Upgrade your dependency to 8.0.21 or later.
What CWE is associated with CVE-2025-66803?
CVE-2025-66803 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check npm dependencies for CVE-2025-66803?
Run the dependency tree command: 'npm ls @hotwired/turbo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qppm-g56g-fpvp",
  "modified" : "2026-01-21T21:11:06Z",
  "published" : "2026-01-20T18:58:15Z",
  "aliases" : [ "CVE-2025-66803" ],
  "summary" : "Turbo Frame responses can restore stale session cookies",
  "details" : "###  Summary\nA race condition in Turbo Frames allows delayed HTTP responses to restore stale session cookies after session-modifying operations.\n\n### Details\nBrowsers 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.\n\nThis condition can occur naturally on slow networks. An active network attacker capable of delaying responses could potentially exploit this to restore previous session state.\n\n  ### Impact\n Applications using Turbo Frames with cookie-based session storage may experience:\n  - Session state reversion after logout\n  - Unintended restoration of previous authentication state\n\nThe 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.\n\n###  Patches\n  Upgrade to Turbo 8.0.21 or later. The fix cancels in-flight Turbo Frame requests when:\n  - The frame element is disconnected from the DOM\n  - The frame's disabled attribute is set\n  - The frame's src attribute is cleared\n\n###  Workarounds\n  - Use server-side session storage instead of a cookie store like Rails's cookie store\n  - Ensure logout flows remove or disable Turbo Frame elements before invalidating sessions\n\n###  References\n  - https://github.com/hotwired/turbo/pull/1399",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@hotwired/turbo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.0.21"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.0.20"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hotwired/turbo/security/advisories/GHSA-qppm-g56g-fpvp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66803"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hotwired/turbo/pull/1399"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hotwired/turbo/commit/899df356e9f4b3303cca217cd14b3f846edda10d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hotwired/turbo"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hotwired/turbo/releases/tag/v8.0.21"
  }, {
    "type" : "WEB",
    "url" : "https://turbo.hotwired.dev/handbook/frames"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362", "CWE-367", "CWE-613" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-20T18:58:15Z",
    "nvd_published_at" : "2026-01-20T19:15:49Z"
  }
}