Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32887: CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') in Effect-TS effect

0
High
VulnerabilityCVE-2026-32887cvecve-2026-32887cwe-362
Published: Fri Mar 20 2026 (03/20/2026, 21:35:05 UTC)
Source: CVE Database V5
Vendor/Project: Effect-TS
Product: effect

Description

Effect is a TypeScript framework that consists of several packages that work together to help build TypeScript applications. Prior to version 3.20.0, when using `RpcServer.toWebHandler` (or `HttpApp.toWebHandlerRuntime`) inside a Next.js App Router route handler, any Node.js `AsyncLocalStorage`-dependent API called from within an Effect fiber can read another concurrent request's context — or no context at all. Under production traffic, `auth()` from `@clerk/nextjs/server` returns a different user's session. Version 3.20.0 contains a fix for the issue.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/27/2026, 22:40:01 UTC

Technical Analysis

CVE-2026-32887 is a race condition vulnerability (CWE-362) found in the Effect-TS framework, a TypeScript ecosystem designed to facilitate building scalable applications. The vulnerability arises in versions prior to 3.20.0 when using RpcServer.toWebHandler or HttpApp.toWebHandlerRuntime inside Next.js App Router route handlers. These handlers rely on Node.js AsyncLocalStorage to maintain request-specific context data across asynchronous operations. Due to improper synchronization in Effect-TS's fiber implementation, concurrent requests can cause AsyncLocalStorage contexts to leak or be shared incorrectly between fibers. This results in one request potentially reading another request's context or no context at all. A practical consequence is that authentication calls such as auth() from the @clerk/nextjs/server package may return session information belonging to a different user, effectively enabling session confusion or hijacking. The vulnerability impacts confidentiality and integrity but does not affect availability. Exploitation requires no privileges or user interaction but has a high attack complexity due to the need to trigger concurrent request conditions. The flaw is fixed in Effect-TS version 3.20.0 by correcting synchronization mechanisms to isolate AsyncLocalStorage contexts properly. No known exploits are reported in the wild yet, but the issue poses a significant risk in production environments handling concurrent authenticated requests.

Potential Impact

The primary impact of CVE-2026-32887 is the compromise of user session confidentiality and integrity in applications using vulnerable Effect-TS versions with Next.js App Router. Attackers can exploit the race condition to access or impersonate other users' sessions, leading to unauthorized data access, privilege escalation, and potential data breaches. This undermines trust in authentication mechanisms and can expose sensitive personal or corporate data. Although availability is not directly affected, the reputational damage and regulatory consequences of session hijacking can be severe. Organizations running multi-tenant or user-sensitive applications with high concurrency are particularly at risk. The vulnerability also complicates compliance with data protection regulations such as GDPR or HIPAA due to unauthorized data exposure. Since the flaw is in a widely used TypeScript framework integrated with popular web development stacks, the scope of affected systems is broad, especially for modern web applications leveraging Next.js and Effect-TS.

Mitigation Recommendations

1. Upgrade Effect-TS to version 3.20.0 or later immediately to apply the official fix addressing the race condition. 2. Audit all usage of RpcServer.toWebHandler and HttpApp.toWebHandlerRuntime in Next.js App Router route handlers to ensure no legacy code remains using vulnerable versions. 3. Review and test all AsyncLocalStorage-dependent APIs, particularly authentication and session management code, to verify proper context isolation under concurrent load. 4. Implement additional concurrency controls or request context validation layers to detect and prevent context leakage if upgrading is delayed. 5. Conduct thorough penetration testing simulating concurrent requests to identify any residual session confusion issues. 6. Monitor application logs for anomalous authentication patterns or session mismatches indicative of exploitation attempts. 7. Educate developers about the risks of improper synchronization in asynchronous environments and encourage use of frameworks with robust context management. 8. Consider deploying runtime application self-protection (RASP) tools that can detect and block suspicious session anomalies in real time.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-16T21:03:44.421Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69bdc1299e4ece4ed250509c

Added to database: 3/20/2026, 9:50:33 PM

Last enriched: 3/27/2026, 10:40:01 PM

Last updated: 5/4/2026, 2:42:18 PM

Views: 199

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses