Effect: ReDoS in Schema.TemplateLiteral compiled regex
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 17, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 3, 2026
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.
| Product | Versions |
|---|---|
| effect Effect-TS | < 3.22.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | GitHub_M |
Weaknesses
- CWE-1333 Inefficient Regular Expression Complexity
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.