You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used. Additionally template actions within JS template literals did not properly track the brace depth, leading to incorrect escaping being applied. These issues could cause actions within JS template literals to be incorrectly or improperly escaped, leading to XSS vulnerabilities.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
Title: html/template de Go standard library, Description: El contexto no se seguía correctamente a través de las ramas de la plantilla para los literales de plantilla de JS, lo que llevó a un escape posiblemente incorrecto del contenido cuando se usaban las ramas. Además, las acciones de la plantilla dentro de los literales de plantilla de JS no seguían correctamente la profundidad de las llaves, lo que llevó a que se aplicara un escape incorrecto. Estos problemas podrían causar que las acciones dentro de los literales de plantilla de JS fueran escapadas incorrecta o indebidamente, lo que llevó a vulnerabilidades de XSS.
[{"vendor":"Go standard library","product":"html/template","defaultStatus":"unaffected","collectionURL":"https://pkg.go.dev","packageName":"html/template","programRoutines":[{"name":"context.String"},{"name":"context.mangle"},{"name":"escaper.escapeBranch"},{"name":"Error.Error"},{"name":"HTMLEscaper"},{"name":"JSEscape"},{"name":"JSEscapeString"},{"name":"JSEscaper"},{"name":"ParseFS"},{"name":"ParseFiles"},{"name":"ParseGlob"},{"name":"Template.AddParseTree"},{"name":"Template.Clone"},{"name":"Template.DefinedTemplates"},{"name":"Template.Execute"},{"name":"Template.ExecuteTemplate"},{"name":"Template.Funcs"},{"name":"Template.Parse"},{"name":"Template.ParseFS"},{"name":"Template.ParseFiles"},{"name":"Template.ParseGlob"},{"name":"URLQueryEscaper"}],"versions":[{"version":"0","lessThan":"1.25.9","versionType":"semver","status":"affected"},{"version":"1.26.0-0","lessThan":"1.26.2","versionType":"semver","status":"affected"}]}]
Initial Analysis by NIST4/16/2026 3:06:57 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Added
CWE
CWE-79
Added
CPE Configuration
OR
*cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions up to (excluding) 1.25.9
*cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions from (including) 1.26.0 up to (excluding) 1.26.2
Added
Reference Type
Go Project: https://go.dev/cl/763762 Types: Patch
Added
Reference Type
Go Project: https://go.dev/issue/78331 Types: Issue Tracking
Added
Reference Type
Go Project: https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU Types: Mailing List, Release Notes
Added
Reference Type
Go Project: https://pkg.go.dev/vuln/GO-2026-4865 Types: Vendor Advisory
CVE Modified by CISA-ADP4/13/2026 3:16:40 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
New CVE Received from Go Project4/07/2026 10:16:03 PM
Action
Type
Old Value
New Value
Added
Description
Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used. Additionally template actions within JS template literals did not properly track the brace depth, leading to incorrect escaping being applied. These issues could cause actions within JS template literals to be incorrectly or improperly escaped, leading to XSS vulnerabilities.