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/20/2026, 21:51:33 UTC

Technical Analysis

CVE-2026-32887 is a concurrency vulnerability classified as a race condition (CWE-362) in the Effect-TS framework, a set of TypeScript packages designed to build scalable applications. The flaw manifests when developers use RpcServer.toWebHandler or HttpApp.toWebHandlerRuntime inside Next.js App Router route handlers. Under these conditions, Node.js's AsyncLocalStorage, which is intended to maintain request-specific context across asynchronous operations, fails to isolate contexts properly between concurrent requests. This leads to context leakage or mixing, where asynchronous fibers may read another request's context or no context at all. A critical consequence is that the auth() function from the popular @clerk/nextjs/server authentication library can return a session belonging to a different user, effectively allowing unauthorized access to user data. The vulnerability arises from improper synchronization of shared resources within Effect fibers, causing concurrent execution issues. The CVSS v3.1 base score is 7.4, reflecting high severity due to the potential for confidentiality and integrity breaches without requiring authentication or user interaction, though exploitation complexity is somewhat high. The issue was publicly disclosed on March 20, 2026, and resolved in Effect-TS version 3.20.0. No known exploits have been reported in the wild, but the risk is significant for applications using affected versions in production, especially those handling sensitive user authentication data.

Potential Impact

The primary impact of CVE-2026-32887 is the compromise of user session confidentiality and integrity in applications built with Effect-TS versions prior to 3.20.0, particularly when integrated with Next.js and @clerk/nextjs/server for authentication. Attackers exploiting this race condition could gain unauthorized access to other users' sessions, leading to data leakage, privilege escalation, and potential account takeover. This undermines trust in authentication mechanisms and can result in regulatory compliance violations, reputational damage, and financial losses. Since the vulnerability affects asynchronous context handling at the framework level, it can impact any application relying on these components, especially high-traffic web services where concurrent requests are common. Although availability is not directly affected, the breach of confidentiality and integrity poses serious risks to organizations managing sensitive user information.

Mitigation Recommendations

To mitigate CVE-2026-32887, organizations should immediately upgrade all Effect-TS framework components to version 3.20.0 or later, where the race condition has been fixed. Review and audit all usages of RpcServer.toWebHandler and HttpApp.toWebHandlerRuntime within Next.js App Router route handlers to ensure no legacy code remains vulnerable. Implement rigorous testing under concurrent load to detect any asynchronous context leakage. Additionally, consider isolating authentication context management from shared asynchronous resources or employing alternative context propagation mechanisms that guarantee request isolation. Monitor authentication logs for anomalies indicating session confusion or unauthorized access attempts. If upgrading is not immediately feasible, apply strict access controls and limit exposure of affected services until patched. Finally, coordinate with authentication library vendors like @clerk/nextjs/server to ensure compatibility with the patched Effect-TS versions and verify that session management is robust against concurrency issues.

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/20/2026, 9:51:33 PM

Last updated: 3/21/2026, 1:20:09 AM

Views: 12

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