What’s Vulnerable › Vulnerabilities

CVE-2026-94448: Reset context tracking on consecutive template expressions in html/template

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.

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-94448 or the next vulnerability affects your stack