Every CVESearch/Get API key

CVE-2026-121707

Effect: ReDoS in Schema.TemplateLiteral compiled regex

Explain with AI
ChatGPTClaudeGoogle AI
Severity
8.7High
Network attack, no privileges, no user interactionCVSS 4.0, CVE List
Exploitation
Unknown
No source reports exploitation yet.
Exploit chance
0.49% in 30 days
Percentile43rd
EPSS, scored
Listed fix
3.22.1 for effect (npm)
From GitHub Advisories and OSV10 other affected packages

Overview

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.

CVSS 4.0 vector

Exploitability

Attack vector
Network
Complexity
Low
Attack requirements
None
Privileges needed
None
User interaction
None

Impact on the vulnerable system

Confidentiality
None
Integrity
None
Availability
High

Impact on subsequent systems

Confidentiality
None
Integrity
None
Availability
None
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

Exploit chance over time

Down less than 0.1 points since Nov 18, 2026
EPSS score, scored every day from Nov 18, 2026 to Dec 4, 2026: lowest 0.30% on Nov 19, 2026, highest 0.52% on Nov 18, 2026, 0.49% on the last day.

Affected

Packages 11

Affected packages
PackageAffectedFixed
effect
npm
through 3.22.0
3.22.1
before 3.22.1
3.22.1
temporalio-ui-2-fips
Docker Hardened Images:Alpine:3.23
2.58.1-r0 and later, plus listed versions
2.58.1-r12.58.1-r22.58.1-r32.59.0-r0
None listed
temporalio-ui-2-fips
Docker Hardened Images:Alpine:3.24
2.58.1-r0 and later, plus listed versions
2.58.1-r12.58.1-r22.58.1-r32.59.0-r0
None listed
temporalio-ui-2
Docker Hardened Images:Alpine:3.23
2.58.1-r0 and later, plus listed versions
2.58.1-r12.58.1-r22.58.1-r32.59.0-r0
None listed
temporalio-ui-2
Docker Hardened Images:Alpine:3.24
2.58.1-r0 and later, plus listed versions
2.58.1-r12.58.1-r22.58.1-r32.59.0-r0
None listed
langfuse-3
Docker Hardened Images:Debian:13
3.225.0-0 and later, plus listed versions
3.225.0-13.225.1-03.225.1-13.225.10-03.225.11-0
Show 24 more versionsShow less
3.225.12-03.225.12-13.225.12-23.225.14-03.225.15-03.225.15-13.225.15-23.225.2-03.225.3-03.225.4-03.225.5-03.225.5-13.225.7-03.225.7-13.225.8-03.225.8-13.225.9-03.227.0-03.227.0-13.227.1-03.227.1-13.227.1-23.227.1-33.227.1-4
None listed
langfuse-4
Docker Hardened Images:Debian:13
4.3.1-0 and later, plus listed versions
4.10.0-04.11.0-04.12.0-04.13.0-04.14.0-0
Show 44 more versionsShow less
4.15.0-04.26.0-04.36.1-04.38.0-04.4.0-04.41.0-04.43.0-04.44.0-04.46.0-04.47.0-04.48.0-04.5.0-04.5.0-14.50.0-04.53.0-04.6.0-04.63.0-04.67.0-04.69.0-04.70.0-04.70.1-04.71.0-04.71.0-14.72.0-14.74.0-04.75.0-04.76.0-04.76.0-14.77.0-04.78.0-04.79.0-04.79.0-14.80.0-04.80.0-14.81.0-04.82.0-04.83.0-04.84.0-04.84.0-14.86.0-04.87.0-04.88.0-04.9.0-04.90.0-0
None listed
langfuse-worker-3
Docker Hardened Images:Debian:13
3.174.1-1 and later, plus listed versions
3.186.0-03.187.0-03.187.0-13.188.0-03.191.0-0
Show 45 more versionsShow less
3.191.0-13.193.0-03.194.0-03.194.1-03.194.1-13.195.0-03.197.1-03.198.0-03.200.0-03.201.1-03.202.1-03.203.1-03.203.3-03.204.0-03.205.0-03.205.1-03.206.0-03.208.0-03.210.0-03.212.0-03.213.0-03.214.0-03.216.0-03.216.0-13.218.0-03.219.0-03.221.1-03.222.0-03.222.0-13.223.0-03.224.0-03.224.1-03.224.1-13.224.2-03.224.2-13.224.3-03.224.3-13.225.0-03.225.0-13.225.0-23.225.0-33.225.1-03.225.1-13.225.1-23.225.10-0
None listed
langfuse-worker-4
Docker Hardened Images:Debian:13
4.13.0-0 and later, plus listed versions
4.14.0-04.15.0-04.17.0-04.19.0-04.21.0-0
Show 45 more versionsShow less
4.22.0-04.24.0-04.26.0-04.27.0-04.28.0-04.28.1-04.30.0-04.31.0-04.32.0-04.33.0-04.34.0-04.35.0-04.36.0-04.36.1-04.51.0-04.53.0-04.54.0-04.55.0-04.55.0-14.63.0-04.64.0-04.67.0-04.69.0-04.70.0-04.70.1-04.71.0-04.71.0-24.74.0-04.75.0-04.75.0-14.76.0-04.77.0-04.77.0-14.78.0-04.79.0-04.80.0-04.80.0-14.81.0-04.82.0-04.82.0-14.83.0-04.84.0-04.84.0-14.86.0-04.86.0-1
None listed
temporalio-ui-2-fips
Docker Hardened Images:Debian:13
2.58.1-0 and later, plus listed versions
2.58.1-12.58.1-22.58.1-32.59.0-0
None listed
temporalio-ui-2
Docker Hardened Images:Debian:13
2.58.1-0 and later, plus listed versions
2.58.1-12.58.1-22.58.1-32.59.0-0
None listed

The JSON record also has 30 more versions.

Only in multi-CVE advisories 1

Each of these advisories covers several CVEs at once, so it doesn’t establish that this one affects the package.

Packages named only by advisories that cover several CVEs
PackageAffectedFixed
effect
TuxCare:npm
3.19.19-tuxcare.0 up to 3.19.19-tuxcare.1, plus listed versions
From an advisory covering 2 CVEs
3.19.19
3.19.19-tuxcare.1

Products 1

Sources

CVE List Score usedCVSS 4.08.7

Effect: ReDoS in Schema.TemplateLiteral compiled regex

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.

Record
CVE-2026-121707
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-1333
Updated
2026-11-17
EUVDEUVD-2026-127358CVSS 4.08.7

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.

Record
EUVD-2026-127358
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Updated
2026-11-19
GitHub AdvisoriesGHSA-7589-6fvf-x4pwCVSS 4.08.7

Effect: ReDoS in Schema.TemplateLiteral compiled regex

Impact

Schema.TemplateLiteral compiles each Schema.String span to the lazy wildcard [\s\S]*? and decodes input by running the resulting regular expression against it. When a template has two or more Schema.String spans, for example:

Schema.TemplateLiteral(Schema.String, ":", Schema.String, ":", Schema.String, "X")

the regex contains several ambiguous wildcards. A non-matching input makes the backtracking engine try combinations across all of them, so matching time grows cubically with input length. A 5,000-character string of : characters blocks the event loop for about 15 seconds.

Applications that decode untrusted input with such a schema are affected. That includes Schema.decodeUnknown, Schema.decodeUnknownSync and Schema.is, and anything built on them, such as HttpApi request payloads and @effect/rpc payloads.

Patches

Fixed in effect@3.22.1 (#6761). Template literals whose spans are all Schema.String are now matched with a linear left-to-right scan instead of a regular expression.

Workarounds

If you can't upgrade, check the input length before the template literal runs. Adding Schema.maxLength with .pipe doesn't help, because the filter runs after the regex. Put the length check on the input side instead:

Schema.compose(Schema.String.pipe(Schema.maxLength(256)), MyTemplateLiteral)

Rejecting oversized request bodies before they reach the schema also works.

Record
GHSA-7589-6fvf-x4pw
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-1333
Updated
2026-11-19
NVDCVSS 4.08.7

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.

Record
CVE-2026-121707
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-1333
Updated
2026-11-17
OSVCVSS 4.08.7

Effect: ReDoS in Schema.TemplateLiteral compiled regex

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.

Record
CVE-2026-121707
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-1333
Updated
2026-11-18
OSVDHI-zb5u-4thd-oq2x-7xk7CVSS 4.08.7

Effect is a TypeScript framework that consists of several packages that work together to help build TypeScript…

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.

Record
DHI-zb5u-4thd-oq2x-7xk7
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-12-04
OSVGHSA-7589-6fvf-x4pwCVSS 4.08.7

Effect: ReDoS in Schema.TemplateLiteral compiled regex

Impact

Schema.TemplateLiteral compiles each Schema.String span to the lazy wildcard [\s\S]*? and decodes input by running the resulting regular expression against it. When a template has two or more Schema.String spans, for example:

Schema.TemplateLiteral(Schema.String, ":", Schema.String, ":", Schema.String, "X")

the regex contains several ambiguous wildcards. A non-matching input makes the backtracking engine try combinations across all of them, so matching time grows cubically with input length. A 5,000-character string of : characters blocks the event loop for about 15 seconds.

Applications that decode untrusted input with such a schema are affected. That includes Schema.decodeUnknown, Schema.decodeUnknownSync and Schema.is, and anything built on them, such as HttpApi request payloads and @effect/rpc payloads.

Patches

Fixed in effect@3.22.1 (#6761). Template literals whose spans are all Schema.String are now matched with a linear left-to-right scan instead of a regular expression.

Workarounds

If you can't upgrade, check the input length before the template literal runs. Adding Schema.maxLength with .pipe doesn't help, because the filter runs after the regex. Put the length check on the input side instead:

Schema.compose(Schema.String.pipe(Schema.maxLength(256)), MyTemplateLiteral)

Rejecting oversized request bodies before they reach the schema also works.

Record
GHSA-7589-6fvf-x4pw
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-1333
Updated
2026-11-19
OSVCLSA-2026-1795517669No score

TuxCare security update for effect (2 CVEs)

TuxCare rebuilt effect to address 2 CVEs. Fixed in 3.19.19-tuxcare.1.

Record
CLSA-2026-1795517669
Updated
2026-11-25

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packages, other IDs, severityOSV
Affected packagesOSV
Affected packagesOSV
Show 4 more daysShow less
Changes recorded by Every CVE
DayChangedSources
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packagesOSV
Affected packages, other IDs, referencesOSV
Published dateEUVD
Published dateEUVD
Affected packages, referencesOSV
Affected packages, key facts, referencesGitHub Advisories, OSV
Other IDs, published dateEUVD, NVD
Other IDs, referencesOSV
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open