CVE-2026-78661
Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Fuente: CISA-ADP
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-78661 divulgada · CVSS 7.5 (CISA-ADP) | |
| Remediación | Parche v0.62.0 | golang.org/x/net · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The golang.org/x/net HTML parser, which Go programs use to parse HTML documents, is affected. Crafted HTML containing many short text fragments separated by ignored end tags can cause parsing time and memory use to grow quadratically, potentially slowing or exhausting resources on the system doing the parsing.
Affects golang.org/x/net/html before v0.62.0 when parsing input with many short text runs separated by ignored end tags. CVSS scores it High (7.5); no vendor rating is given. Fixed in v0.62.0.
Descripción original del registro (Go)
When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as "a</x>") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogolang.org/x/net |
Corregida | v0.62.0 | 0 d | v0.62.0 no afectada |
0.62.0v0.62.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://go.dev/cl/849365https://go.dev/issue/82224https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xshttps://pkg.go.dev/vuln/GO-2026-6860Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
