CVE-2026-45773: Turbo Login Callback CSRF/session Fixation Vulnerability

MODERATE
Advisory Identifier: GHSA-hcf7-66rw-9f5r
CWE-352
Published
Advisory Summary

CVE-2026-45773 is a MODERATE login callback csrf/session fixation vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Turbo libraries in the npm ecosystem. The issue involves login callback csrf/session fixation. Remediation is available by upgrading affected packages to version 2.9.14.

CVE-2026-45773 at a Glance

CVE Identifier CVE-2026-45773
GHSA Identifier GHSA-hcf7-66rw-9f5r
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Turbo
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-45773

To remediate this vulnerability, upgrade all affected 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.

turbo fixed: 2.9.14
npm install turbo@2.9.14
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 turbo

How to Check if You Are Affected

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

npm ls turbo

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

Note: The npm ls 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In 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

### Impact Turborepo's self-hosted login and SSO browser flows did not validate a CSRF state value on the localhost callback. While the CLI was waiting for authentication, a malicious web page could send a request to the local callback server with an attacker-controlled token. If accepted before the legitimate callback, the CLI could complete login with the wrong credentials. This affects users authenticating the `turbo` CLI against self-hosted remote cache/auth endpoints. Vercel-hosted login flows using device authorization are not affected. ### Fix The login and SSO redirect flows now generate a random state value, include it in the browser authentication URL, and require the same value on the localhost callback before accepting a token. Callbacks with a missing or mismatched state are rejected. ### Workarounds If you cannot upgrade immediately, avoid browser-based self-hosted `turbo login` or SSO flows on machines that may load untrusted web content during authentication. Use a pre-provisioned token or environment-based authentication instead.

CVE-2026-45773 Affected Turbo Versions

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

References

Frequently Asked Questions

What is CVE-2026-45773?
CVE-2026-45773 is a security vulnerability in Turbo involving Login callback CSRF/session fixation under CWE-352: Cross-Site Request Forgery (CSRF).
Which Turbo versions are affected?
Affected versions include releases prior to 2.9.14 across affected packages: turbo.
What version fixes CVE-2026-45773?
Upgrading to 2.9.14 (or the latest patched release for your respective branch) resolves the vulnerability.
Is turbo affected?
Yes, turbo is affected in releases prior to 2.9.14. Upgrade your dependency to 2.9.14 or later.
What CWE is associated with CVE-2026-45773?
CVE-2026-45773 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check npm dependencies for CVE-2026-45773?
Run the dependency tree command: 'npm ls 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-hcf7-66rw-9f5r",
  "modified" : "2026-06-29T15:30:55Z",
  "published" : "2026-05-19T19:49:52Z",
  "aliases" : [ "CVE-2026-45773" ],
  "summary" : "Turbo: Login callback CSRF/session fixation",
  "details" : "### Impact\n\nTurborepo's self-hosted login and SSO browser flows did not validate a CSRF state value on the localhost callback. While the CLI was waiting for authentication, a malicious web page could send a request to the local callback server with an attacker-controlled token. If accepted before the legitimate callback, the CLI could complete login with the wrong credentials.\n\nThis affects users authenticating the `turbo` CLI against self-hosted remote cache/auth endpoints. Vercel-hosted login flows using device authorization are not affected.\n\n### Fix\n\nThe login and SSO redirect flows now generate a random state value, include it in the browser authentication URL, and require the same value on the localhost callback before accepting a token. Callbacks with a missing or mismatched state are rejected.\n\n### Workarounds\n\nIf you cannot upgrade immediately, avoid browser-based self-hosted `turbo login` or SSO flows on machines that may load untrusted web content during authentication. Use a pre-provisioned token or environment-based authentication instead.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:H/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "turbo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.9.14"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.9.13"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vercel/turborepo/security/advisories/GHSA-hcf7-66rw-9f5r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45773"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vercel/turborepo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-19T19:49:52Z",
    "nvd_published_at" : "2026-05-15T16:16:15Z"
  }
}