CVE-2026-121707
Effect: ReDoS in Schema.TemplateLiteral compiled regex
High · 8.7Fix available
- CVSS
- 8.7
- EPSS
- 0.49% (p44)
- Published
- 2026-11-17
- Age
- 19d old
- Modified
- 2026-11-19
- Product
- Effect-TS effect
- Aliases
- GHSA-7589-6fvf-x4pw
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
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.
Fixed in
3.22.1
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| npm | effect | <= 3.22.0 | 3.22.1 |
Sources
- NVD · first seen 19d ago · NVD terms of use
- OSV · first seen 18d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 17d ago · CC-BY 4.0
- CVE List · first seen 19d ago · CVE Terms of Use
References
- https://github.com/Effect-TS/effect/security/advisories/GHSA-7589-6fvf-x4pw x_refsource_CONFIRM
- https://github.com/Effect-TS/effect/pull/6761 x_refsource_MISC
- https://github.com/Effect-TS/effect/commit/3cc3c6e1a64cbdc360e9d28e44f3ec3ce0ece6e3 x_refsource_MISC
- https://github.com/Effect-TS/effect/releases/tag/effect@3.22.1 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121707.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-121707 advisory
- https://github.com/advisories/GHSA-7589-6fvf-x4pw other