5.4Media

CVE-2024-24785Errors returned from JSON marshaling may break template escaping in html/template

Go standard library html/template Publicada: (hace 2 años)

Descripción

If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.

Debilidad (CWE): CWE-150

Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.

Productos y versiones afectados

FabricanteProductoVersiones
Go standard library html/template < 1.21.8, 1.22.0-0 – < 1.22.1

Referencias y parches