Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSocial engineering (phishing/watering hole)
-
DeliveryVictim initiates 'turbo login' on self-hosted endpoint
-
ExploitVictim visits attacker page
-
ExecutionAttacker sends malicious callback to localhost
-
PersistCLI accepts forged credentials
-
ImpactSubsequent builds use attacker's cache credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires victim to be actively authenticating Turborepo CLI against a self-hosted remote cache endpoint at the moment of attack - specifically during the window between running 'turbo login' and completing the OAuth callback (typically 30-120 seconds). Victim must simultaneously visit attacker-controlled web page capable of making requests to localhost (standard browser same-origin policy allows this for localhost targets). Attack succeeds only if the malicious callback request arrives before the legitimate OAuth redirect from the authentication server, creating a race condition that depends on network latency and server response times. Does not affect Vercel-hosted Turborepo deployments using device authorization flow. Only impacts self-hosted authentication endpoints where organizations have implemented custom OAuth providers for remote cache access control. Attack is limited by user interaction requirement (UI:P) - developer must be tricked into visiting malicious site during narrow authentication window - and present attack timing (AT:P) due to race condition nature. |
| Impact | Real-world risk is moderate and highly situational. The CVSS base score of 5.1 reflects the dependency on user interaction (UI:P) and specific attack timing (AT:P - the malicious callback must win a race condition against the legitimate OAuth server response). EPSS data not provided, but the attack requirements significantly constrain exploitation: (1) victim must be actively authenticating turbo CLI during attack window, (2) attacker must induce victim to visit malicious web page simultaneously, (3) attacker's callback must arrive before legitimate OAuth response (timing-dependent race), (4) only affects self-hosted deployments with custom authentication endpoints. The CVSS vector shows high subsequent integrity impact (SI:H), meaning successful credential injection could poison build artifacts or leak proprietary code through compromised cache credentials in later operations. No CISA KEV listing and no public exploit identified at time of analysis, suggesting this remains a theoretical attack not yet weaponized. Priority for remediation: HIGH for organizations using self-hosted Turborepo with team-shared remote caches (supply chain risk), LOW for Vercel-hosted users (explicitly not vulnerable) or standalone local builds. The narrow attack surface and user interaction requirement reduce urgency compared to unauthenticated RCE, but the potential supply chain impact warrants prompt patching in affected environments. |
| Exploit ScenarioDerived | A developer at a company using self-hosted Turborepo initiates CLI login by running 'turbo login' against their corporate remote cache server. While the CLI waits for the OAuth callback on http://localhost:9789, the developer visits a malicious website (delivered via phishing email or watering hole attack). The attacker's JavaScript sends a crafted POST request to the known localhost callback endpoint with an attacker-controlled authorization token before the legitimate OAuth server completes its redirect. The CLI's callback handler accepts the malicious token due to missing state validation and completes authentication with the attacker's credentials. Subsequent 'turbo build' commands now push build artifacts to the attacker's remote cache or pull poisoned dependencies, enabling supply chain compromise of the organization's builds. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 15, 2026
CSRF vulnerability in Turborepo's self-hosted authentication flow allows credential injection attacks when users authenticate the CLI against self-hosted remote cache endpoints. An attacker-controlled web page can send a malicious token to the localhost callback server during the login process. If the malicious callback arrives before the legitimate OAuth response, the CLI completes authentication with attacker-supplied credentials, leading to high integrity impact on subsequent build operations. This affects users of self-hosted Turborepo deployments only - Vercel's hosted device authorization flows are not vulnerable. Fixed in version 2.9.14.
RemediationAI
Upgrade Turborepo to version 2.9.14 or later, which implements proper CSRF state parameter validation in the localhost OAuth callback handler. For npm/yarn installations, run 'npm update turbo' or 'yarn upgrade turbo' to install the patched version. The fix adds cryptographic validation to ensure callback requests originate from the same authorization flow initiated by the CLI. Official vendor advisory with technical details is available at https://github.com/vercel/turborepo/security/advisories/GHSA-hcf7-66rw-9f5r. For organizations unable to immediately upgrade, implement compensating controls with trade-offs: (1) Restrict CLI authentication to trusted networks only - limits where 'turbo login' can be executed but may disrupt remote developer workflows. (2) Educate developers to avoid browsing untrusted websites during CLI authentication flows - relies on user behavior change, difficult to enforce. (3) Use short-lived authentication tokens and rotate frequently - reduces window of compromised credential utility but increases operational overhead. (4) Monitor authentication logs for anomalous token usage patterns (e.g., tokens used from unexpected IP ranges immediately after issuance). Note that workarounds provide incomplete protection; upgrading to 2.9.14 is the only complete remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Turborepo is a build system orchestrator for JavaScript/TypeScript monorepos, supporting remote caching to accelerate builds across teams. The affected component is the CLI's OAuth-style authentication flow for self-hosted remote cache servers. During login, the CLI spawns a local HTTP server on localhost to receive the OAuth callback with an authorization code. The vulnerability stems from missing CSRF state parameter validation (CWE-352) - the callback handler accepted any incoming request without verifying the cryptographic state token that binds the authorization request to the callback response. This violates OAuth 2.0 security best practices (RFC 6749 Section 10.12). The affected product is identified by CPE cpe:2.3:a:vercel:turborepo:*:*:*:*:*:*:*:* covering all versions prior to 2.9.14. The CVSS 4.0 vector indicates network-based attack (AV:N) with low complexity (AC:L) but requiring present attack conditions (AT:P) and user interaction (UI:P), resulting in high subsequent integrity impact (SI:H) while vulnerable system integrity impact remains low (VI:L).
Know when Turborepo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Turborepo is a high-performance build system for JavaScript and TypeScript codebases. Prior to 2.9.14, 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. This vulnerability is fixed in 2.9.14.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
EUVD-2026-30553
GHSA-hcf7-66rw-9f5r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB