# CVE-2026-39826: Escaper bypass leads to 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.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-05-07T19:21:40.000Z
- Modified: 2026-11-23T21:12:28.912Z
- Also known as: GO-2026-4980, BIT-GOLANG-2026-39826
- Related: RHSA-2026:22112, RHSA-2026:22120, RHSA-2026:22121, RHSA-2026:23262, RHSA-2026:23264, RHSA-2026:49702, RHSA-2026:49712, RHSA-2026:57649, RHSA-2026:61253
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## Description

If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly escape any data passed into the <script> block.

(As written by CVE List.)

## Affected

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

## 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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://go.dev/issue/78981> (fix, patch, report)
- <https://go.dev/cl/771180> (fix, patch)
- <https://groups.google.com/g/golang-announce/c/qcCIEXso47M> (article, release-notes, web)
- <https://pkg.go.dev/vuln/GO-2026-4980> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39826> (web)

## Sources

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

---

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