cvelo
P4 · InfoEPSS 0.3%

Reset context tracking on consecutive template expressions in html/template

  • CVE-2026-94448
  • BIT-golang-2026-94448
  • GO-2026-6599

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.

Text from the OSV record.

Affected

  • stdlibGo

    • all versions, fixed in 1.26.9
    • from 1.27.0-0, fixed in 1.27.2

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.