6.1Medium

CVE-2026-97030Recognize yield as regexp preceder keyword in html/template

Go standard library html/template Published: (1 month ago)

Description

A trusted template author may have previously written a valid template wherein the use of the 'yield' keyword would not be correctly escaped. We now ensure that valid keyword uses are escaped and non-keyword uses are not escaped.

Weakness (CWE): CWE-79

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library html/template < 1.26.9, 1.27.0-0 – < 1.27.2

References and patches