What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Go Stdlib 1.26.9, 1.27.2; Go standard library html/template 1.26.9, 1.27.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-97030 or the next vulnerability affects your stack