Go standard library · Go · published 2026-05-07
CVE-2026-39826Escaper bypass leads to XSS in html/template
Routine No exploitation evidence; EPSS 0.4%.
CVE-2026-39826 is not known to be exploited in the wild. EPSS estimates a 0.4% chance of exploitation in the next 30 days, higher than 31% of all CVEs. This Go vulnerability: CVSS 6.1 (v3.1). Fixed upstream in Go 1.26.3, 1.25.10. Routine: patch when convenient.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
Fixed upstream in Go 1.26.3, 1.25.10.
Patch events
Language runtimeGo
Go security releases: 1.26.3, 1.25.10
Upgrade to
1.26.31.25.10Why: Vendor security release for server software (most severe: CVE-2026-33811).
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | No | CISA KEV |
| Ransomware use | — | CISA KEV |
| EPSS (30-day exploitation probability) | 0.4% (32th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 6.1 (v3.1)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | CNA / CISA ADP |
| SSVC exploitation | none | CISA Vulnrichment |
| SSVC automatable | No | CISA Vulnrichment |
| SSVC technical impact | partial | CISA Vulnrichment |
Affected versions (from the CVE record)#
- Go standard library html/template
0to before1.25.10(affected)1.26.0-0to before1.26.3(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.