Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint decoding untrusted input
-
DeliveryCraft long non-matching string
-
ExploitSubmit to TemplateLiteral schema
-
ExecutionTrigger cubic regex backtracking
-
ImpactBlock event loop and deny service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitable only when an application decodes attacker-controlled input through a Schema.TemplateLiteral that contains at least two Schema.String spans; a single-string span or non-string spans are not affected. The concrete trigger is a long non-matching input (per the advisory, ~5,000 characters of ':' already causes ~15s of blocking), processed via Schema.decodeUnknown, Schema.decodeUnknownSync, Schema.is, or downstream HttpApi / @effect/rpc payload decoding. LIMITING FACTORS: no authentication or user interaction is required (PR:N/UI:N), but the vulnerable multi-string-span template-literal schema must actually be on an untrusted input path; piping Schema.maxLength after the template does NOT mitigate because the filter runs after the regex - the length check must be placed on the input side (Schema.compose with Schema.maxLength first) or oversized bodies rejected before reaching the schema. |
| Impact | This is a genuine availability-only Denial of Service (CWE-1333, ReDoS), and the signals are internally consistent rather than conflicting. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a network-reachable, low-complexity, unauthenticated trigger with no attack requirements, and the only impact metric set is VA:H - confidentiality and integrity are explicitly N, so there is no code execution or data exposure, purely event-loop starvation. The vendor advisory quantifies the impact concretely (a 5,000-character string blocks the event loop ~15 seconds; matching time grows cubically with input length), which supports the HIGH availability rating for a single-threaded Node.js process. KEV status is NOT present in the input, so this is not confirmed actively exploited; EPSS is absent from the input and therefore cannot be used to gauge exploitation likelihood - STATE EXPLICITLY: no EPSS or KEV signal was provided. The vuln.today Decision label is 'this_week' (not act_now/emergency), aligning with a serious-but-not-active DoS. The real priority is moderated by a usage precondition: the CVSS AV:N/PR:N reflects worst case, but exploitation only applies to applications that decode untrusted input through a Schema.TemplateLiteral containing two or more Schema.String spans - so the effective exposure is narrower than the raw 8.7 score suggests and depends on how the framework is actually used. |
| Exploit ScenarioDerived | An application exposes an HttpApi endpoint or @effect/rpc handler whose payload is validated by a Schema.TemplateLiteral with two or more Schema.String spans (e.g. Schema.TemplateLiteral(Schema.String, ":", Schema.String, ":", Schema.String, "X")). A remote attacker submits a long non-matching string such as several thousand ':' characters, forcing cubic regex backtracking that blocks the single-threaded JavaScript event loop and stalls the service for all users. The vendor advisory includes a proof-of-concept demonstration of the trigger (a 5,000-character input stalling the loop ~15 seconds), though no packaged weaponized exploit is referenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Cubic regular-expression backtracking in Effect's Schema.TemplateLiteral decoder (npm package effect up to and including 3.22.0) allows remote attackers to block the JavaScript event loop by supplying a long non-matching string to any template-literal schema built from two or more Schema.String spans. The defect reaches untrusted input paths through Schema.decodeUnknown, Schema.decodeUnknownSync and Schema.is, and therefore through consumers such as HttpApi request payloads and @effect/rpc payloads; the advisory notes that a 5,000-character string of ':' stalls the event loop for roughly 15 seconds. No public exploit code was identified at time of analysis, and there is no KEV listing, but the availability-only impact and trivial trigger shape place it on a this-week remediation cadence for projects that decode untrusted input with affected schemas.
RemediationAI
Upgrade the effect package to 3.22.1, the version in which template literals composed entirely of Schema.String spans are decoded with a linear matcher instead of a regex; the fix is carried by PR https://github.com/Effect-TS/effect/pull/6761 and commit https://github.com/Effect-TS/effect/commit/3cc3c6e1a64cbdc360e9d28e44f3ec3ce0ece6e3, with release notes at https://github.com/Effect-TS/effect/releases/tag/effect@3.22.1 and the advisory at https://github.com/Effect-TS/effect/security/advisories/GHSA-7589-6fvf-x4pw. If the upgrade cannot be applied immediately, the vendor's workaround is to bound input length before the template literal is evaluated, using Schema.compose(Schema.String.pipe(Schema.maxLength(256)), MyTemplateLiteral); note that attaching Schema.maxLength after the template literal with .pipe does not help, because that filter runs only after the regex has already executed - the trade-off of this workaround is that legitimate longer values are silently rejected unless the bound is sized to real input. Rejecting or truncating oversized request bodies before they reach the schema layer is an equivalent front-line control, though it must be applied consistently across every entry point (HTTP handlers, RPC handlers) or a single unguarded path remains exposed, and it constrains legitimate large payloads at the same threshold. No public exploit code was identified at time of analysis, but the vendor fix should still be prioritized this week for any service that decodes untrusted input with affected schemas.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Effect is a TypeScript framework delivered as a set of npm packages, tracked here as cpe:2.3:a:effect-ts:effect. Its Schema module compiles a TemplateLiteral AST node into a JavaScript regular expression so that decoding can validate and extract values. In the vulnerable implementation (packages/effect/src/ParseResult.ts), each Schema.String span inside a template literal is emitted as the lazy wildcard [\s\S]*?; when a template contains two or more such spans, the resulting pattern holds multiple ambiguous wildcards and the backtracking engine explores combinations across all of them, giving time growth that is cubic in input length. This is CWE-1333 (Inefficient Regular Expression Complexity), a classic ReDoS class, and the trigger is a non-matching input - the pattern has to fail for the pathological backtracking to occur. The upstream fix special-cases templates whose spans are all Schema.String and replaces the regex with a linear left-to-right scan (fromRefinement using startsWith/indexOf/endsWith), which the added test verifies against AST.getTemplateLiteralRegExp over a corpus of edge-case inputs plus an 8,000-character adversarial string bounded to under one second. Templates containing non-string spans keep the previous regex path, so the change is scoped rather than a general regex-hardening effort.
Know when Effect 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:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Remote unauthenticated input to the decoder (AV:N/AC:L/PR:N/UI:N); event-loop blocking yields A:H while confidentiality and integrity are unaffected (C:N/I:N).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Effect is a TypeScript framework that consists of several packages that work together to help build TypeScript applications. Prior to 3.22.1, Schema.TemplateLiteral schemas containing at least two Schema.String spans compile each span to the ambiguous lazy wildcard [\s\S]*?. Decoding a non-matching untrusted string causes cubic regular expression backtracking, which can block the JavaScript event loop. The issue affects Schema.decodeUnknown, Schema.decodeUnknownSync, Schema.is, and consumers such as HttpApi and @effect/rpc payload decoding. This issue is fixed in version 3.22.1.
Blast Radius
ecosystem impact- 56 npm packages depend on effect (51 direct, 6 indirect)
Ecosystem-wide dependent count for version 3.22.1.
Technical POC Analysis
CWE-1333 (Inefficient Regular Expression Complexity / ReDoS), inside the effect npm package's Schema.TemplateLiteral decoder.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CVE-2026-121707 is a high-severity availability vulnerability in the widely used 'effect' JavaScript library (versions up to 3.22.0) that can be exploited by remote attackers through simple, unauthenticated requests. Any service using the affected Schema.TemplateLiteral decoder to process untrusted input-such as via HttpApi or @effect/rpc-is at risk of a denial-of-service condition where a single crafted request can freeze the event loop for an extended period, potentially disrupting all users of that service. Leadership should prioritize patching because the attack requires minimal effort and can cause significant operational disruption.
Apply vendor patch.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
effect through 1.0.4 is vulnerable to Command Injection. Rated critical severity (CVSS 9.8), this vulnerability is remot
Cookie attribute injection in the Effect TypeScript framework's makeCookie() lets an application that feeds untrusted st
EUVD-2026-127358
GHSA-7589-6fvf-x4pw
NVD
CVE.org
EPSS
Exploit-DB