# CVE-2026-32289: JsBraceDepth Context Tracking Bugs (XSS) in html/template

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-04-07T22:53:49.000Z
- Modified: 2026-10-07T10:41:46.025Z
- Also known as: GO-2026-4865, BIT-GOLANG-2026-32289
- Related: RHSA-2026:10217, RHSA-2026:10219, RHSA-2026:22112, RHSA-2026:7291, RHSA-2026:7385
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- html/template: before 1.25.9; from 1.26.0-0 before 1.26.2
- stdlib (Go): before 1.25.9; from 1.26.0-0 before 1.26.2
- golang go: before 1.25.9; from 1.26.0 before 1.26.2
- golang (Bitnami): before 1.25.9; from 1.26.0-0 before 1.26.2

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://go.dev/cl/763762> (fix, patch)
- <https://go.dev/issue/78331> (issue-tracking, report)
- <https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU> (discussion, mailing-list, release-notes, web)
- <https://pkg.go.dev/vuln/GO-2026-4865> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32289> (web)

## Sources

- CVE List: [CVE-2026-32289](https://www.cve.org/CVERecord?id=CVE-2026-32289), CVE Terms of Use, modified 2026-04-13
- Go Vulnerability Database: [GO-2026-4865](https://pkg.go.dev/vuln/GO-2026-4865), CC-BY-4.0, modified 2026-10-07
- NVD: [CVE-2026-32289](https://nvd.nist.gov/vuln/detail/CVE-2026-32289), Public domain, modified 2026-07-25
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-32289](https://osv.dev/vulnerability/BIT-GOLANG-2026-32289), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-32289 · Whole record: https://cve.day/CVE-2026-32289.json · Rebuilt by cve.day 2026-11-25T22:59:18.206Z
