ADVISORIES

Go Vulnerability Database

GO-2026-6600

Recognize yield as regexp preceder keyword in html/template

Details

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

EcosystemPackageAffected versions
Gostdlib
All versions before 1.26.9 (fixed in 1.26.9)
From 1.27.0-0 before 1.27.2 (fixed in 1.27.2)

References