GO-2026-6600

Recognize yield as regexp preceder keyword in html/template

At a glance

Published
Updated
CVE
CVE-2026-97030
Aliases
BIT-golang-2026-97030

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.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.26.9, introduced 1.27.0-0, fixed 1.27.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database