CVE-2026-32289
JsBraceDepth Context Tracking Bugs (XSS) in html/template
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.295% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 6.1 · published by [email protected]CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:40:44.163Z
CVSS 3.1 · 6.1 · published by 134c704f-9b21-4f2e-91b3-4a467353bcc0CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:40:44.163Z
CVSS 3.1 · 6.1 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:49:19.827Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:40:44.163Z | NVD |
| epss | verified | 2026-11-19T16:04:48.739Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:39.236Z | OSV |
| affected | verified | 2026-11-19T12:58:21.300Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:21.300Z | CVE Program |
Affected versions and configuration
Go standard library html/template; default status: unaffected: 0 to < 1.25.9 [affected; scheme: semver]; 1.26.0-0 to < 1.26.2 [affected; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "Go standard library",
"product": "html/template",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.25.9",
"versionType": "semver"
},
{
"status": "affected",
"version": "1.26.0-0",
"lessThan": "1.26.2",
"versionType": "semver"
}
],
"packageName": "html/template",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"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"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "CHANGED",
"version": "3.1",
"baseScore": 6.1,
"attackVector": "NETWORK",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"integrityImpact": "LOW",
"userInteraction": "REQUIRED",
"attackComplexity": "LOW",
"availabilityImpact": "NONE",
"privilegesRequired": "NONE",
"confidentialityImpact": "LOW"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-32289",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-04-13T17:48:22.714020Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-04-13T18:20:46.377Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2026-4865",
"aliases": [
"BIT-golang-2026-32289",
"CVE-2026-32289"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.25.9"
},
{
"introduced": "1.26.0-0"
},
{
"fixed": "1.26.2"
}
]
}
],
"package": {
"name": "stdlib",
"purl": "pkg:golang/stdlib",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-4865.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "html/template",
"symbols": [
"Error.Error",
"HTMLEscaper",
"JSEscape",
"JSEscapeString",
"JSEscaper",
"ParseFS",
"ParseFiles",
"ParseGlob",
"Template.AddParseTree",
"Template.Clone",
"Template.DefinedTemplates",
"Template.Execute",
"Template.ExecuteTemplate",
"Template.Funcs",
"Template.Parse",
"Template.ParseFS",
"Template.ParseFiles",
"Template.ParseGlob",
"URLQueryEscaper",
"context.String",
"context.mangle",
"escaper.escapeBranch"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/cl/763762",
"type": "FIX"
},
{
"url": "https://go.dev/issue/78331",
"type": "REPORT"
},
{
"url": "https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2026-4865",
"review_status": "REVIEWED"
}
}Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "golang-1.23",
"debian": "https://tracker.debian.org/pkg/golang-1.23",
"source": "https://ubuntu.com/security/cve?package=golang-1.23",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=golang-1.23",
"statuses": [
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needs-triage",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "golang-1.22",
"debian": "https://tracker.debian.org/pkg/golang-1.22",
"source": "https://ubuntu.com/security/cve?package=golang-1.22",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=golang-1.22",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
}
]
}
]Archived source JSONNVD · nvd-cpe · full conditions
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "C6C9C072-9817-402D-877F-F83584B07017",
"versionEndExcluding": "1.25.9"
},
{
"criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "39FE9BAF-55E9-43AA-B14E-239E7EF1D65D",
"versionEndExcluding": "1.26.2",
"versionStartIncluding": "1.26.0"
}
],
"operator": "OR"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.25.9 | Official record |
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.26.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- NVDConsulted: 2026-11-19T12:40:44.163ZArchived source JSON
Source publication: 2026-04-08T02:16:03.820Z
Source modification: 2026-07-25T10:10:00.167ZDocument fingerprint
dc3c2818e4d9da150d93c7f23e6f1bc2b9805c152622b97cb15ba49beab3668e - OSVConsulted: 2026-11-19T12:52:39.236ZArchived source JSON
Source publication: 2026-04-07T22:53:49.000Z
Source modification: 2026-10-07T10:41:46.025ZDocument fingerprint
4ca7818b395ba1078372d8aa5d2c3c1d10796ecab94cc944cbdcb6a19ce4ed17 - Ubuntu SecurityConsulted: 2026-11-19T12:49:19.827ZArchived source JSON
Source publication: 2026-04-08T02:16:00.000Z
Source modification: 2026-11-09T05:51:53.274ZDocument fingerprint
6cea52dbe898a3ecd28de7a806af3486b3eaaf470c9b9e6c1bfffaf16d2cff65 - Ubuntu SecurityConsulted: 2026-11-19T12:50:01.946ZArchived source JSON
Source publication: 2026-04-08T02:16:00.000Z
Source modification: 2026-11-09T05:51:53.274ZDocument fingerprint
51f0b3f949d62d89fac2840c27ce99e43287bf629591ad6f696788b32c8b866d - CVE ProgramConsulted: 2026-11-19T12:58:21.300ZArchived source JSON
Source publication: 2026-04-08T01:06:56.297Z
Source modification: 2026-04-13T18:20:46.377ZDocument fingerprint
334ba428b2b6cdf1f547ee5de34e582e66dee1369822e5e8ae5fc03f0b9fe2ce - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:48.739ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3313a11d11e613d0701bead667f77d25d88fe41ce03f62f29fd0b2747a4c900c
Official status history
- UNKNOWN → PUBLISHED · · evidence