CVE-2026-94448

Reset context tracking on consecutive template expressions in html/template

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

Read the record on cve.org

Description

When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now ensure that template-literal expression entries correctly reset context variables so all subsequent regular expression literals are accurately recognized and 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.