llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · effect

GHSA-7589-6FVF-X4PW

Effect: ReDoS in Schema.TemplateLiteral compiled regex

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -112 d de la divulgación
Exposición9 hDesde la divulgación, 19 nov 2026, 3:51 p. m.
Detección1 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Parche 3.22.1
Monitoreo
Detectada
Fuente: GitHub Security Advisories +2
30 jul 26
18 nov 26
19 nov 26
20 nov 26
30 jul 26
27 ago 26
25 sept 26
23 oct 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.22.1 effect · -112 d desde divulgación
Monitoreo Detectada Ingresó al índice
Divulgación Publicada GHSA-7589-6FVF-X4PW divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: GitHub Security Advisories Registro visto por primera vez en GitHub Security Advisories
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
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.

Versiones

Rangos afectados

Afectada Corregida Última
effect< 3.22.1
3.22.1
4.1.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmeffect
Corregida 3.22.1 -112 d 4.1.4 no afectada
Versiones corregidas3.22.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-121707
Otrahttps://github.com/Effect-TS/effect/security/advisories/GHSA-7589-6fvf-x4pw
Otrahttps://github.com/Effect-TS/effect/pull/6761
Otrahttps://github.com/Effect-TS/effect/commit/3cc3c6e1a64cbdc360e9d28e44f3ec3ce0ece6e3
Otrahttps://github.com/Effect-TS/effect
Otrahttps://github.com/Effect-TS/effect/releases/tag/effect@3.22.1

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.