CVE-2026-121707

Effect: ReDoS in Schema.TemplateLiteral compiled regex

Published Nov 17, 2026 CVSS 4.0 · 8.7 High EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a regular expression denial of service (ReDoS) caused by the compilation of Schema.TemplateLiteral expressions that contain at least two Schema.String spans. Each string span is compiled to the ambiguous lazy wildcard [\s\S]*?, which, when subjected to decoding of a non‑matching untrusted string, triggers cubic regular expression backtracking. The result is a block of the JavaScript event loop, preventing normal execution of the application. The weakness is identified as CWE‑1333 and does not provide a path to arbitrary code execution.

Affected Systems

Affected users are those running the Effect‑TS Effect framework, specifically the Schema module and its consumer APIs, including Schema.decodeUnknown, Schema.decodeUnknownSync, Schema.is, HttpApi, and @effect/rpc payload decoding. All releases before version 3.22.1 are vulnerable; the fix is included in 3.22.1 and later.

Risk and Exploitability

The CVSS score of 8.7 reflects a high severity DoS impact. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, so the global exploit probability is unknown. The likely attack vector is the injection of malicious input into any API or service that processes untrusted data through the vulnerable Schema functions, such as external HTTP endpoints or RPC calls. An attacker could trigger event‑loop stalls by sending a specially crafted string payload, which would degrade or halt application availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Effect to version 3.22.1 or later.
  • If an upgrade cannot be performed immediately, restrict or validate input to Schema.decodeUnknown, Schema.decodeUnknownSync, and Schema.is by rejecting or sanitizing complex TemplateLiteral patterns, or excluding them from public APIs.
  • Implement rate limiting or request throttling to mitigate high‑traffic DoS attempts that may exploit the backtracking behavior.

Generated by OpenCVE AI on November 17, 2026 at 20:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title Effect: ReDoS in Schema.TemplateLiteral compiled regex
Weaknesses CWE-1333
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}

Subscriptions

No data.

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 17, 2026, 7:28 PM
Reserved
Nov 3, 2026, 8:41 PM
Status
Received
Published
Nov 17, 2026, 8:17 PM
Modified
Nov 17, 2026, 8:17 PM