OSV 1.4.0 · github-reviewed · 修改于 2026-06-29 23:30
发布时间
2026-05-20 03:49
GitHub 审查时间
2026-05-20 03:49
NVD 发布时间
2026-05-16 00:16
源文件
advisories/github-reviewed/2026/05/GHSA-hcf7-66rw-9f5r/GHSA-hcf7-66rw-9f5r.json
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.
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.
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.