CVE-2026-97030

Recognize yield as regexp preceder keyword in html/template

State
Published
Severity
6.1 Medium
Published
Oct 8, 2026
Updated
Oct 15, 2026
Reserved
Sep 23, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NCISA-ADP

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected Products

ProductVersions
html/templateGo standard library
  • before 1.26.9Affected
  • 1.27.0-0 to before 1.27.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.