Effect: ReDoS in Schema.TemplateLiteral compiled regex
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in effect 3.22.1.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Effect-TS | <3.22.1 | ||
| npm: effect | <3.22.1, <=3.22.0 | 3.22.1 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in effect (npm), strongest first
Embed
A live severity badge for an advisory, README or ticket