GitHub Advisoryadvisory · npm
GHSA-hcf7-66rw-9f5r Turbo: Login callback CSRF/session fixation
MEDIUM
Official page ↗
- Aliases
- CVE-2026-45773
- Ecosystem
- npm
- Packages
- turbo
- Severity
- Moderate
- CVSS vector
- 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
- Weaknesses
- CWE-352
- Reviewed
- 2026-05-19
Affected packages
• npm turbo: < 2.9.14 → fixed in 2.9.14
Description
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.
Related
Alias · CVE (1)
- CVE-2026-45773 Turborepo is a high-performance build system for JavaScript and TypeScript codebases. vulnerability
Weakness · CWE (1)
- CWE-352 Cross-Site Request Forgery weakness