CVE-2026-39826

Escaper bypass leads to XSS in html/template

MEDIUM
6.1
CVSS Score
Published: May 7, 2026 at 07:41 PM UTC
Updated: October 26, 2026 at 08:10 PM UTC
2 products affected across 2 vendorsGoGo

Using html/template by Go standard library?

Get instant alerts when new vulnerabilities affect html/template - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.25.101.26.0 ≤ v < 1.26.3
v < 1.25.101.26.0-0 ≤ v < 1.26.31.26.0-0
Affected range stops below 1.25.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.26.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

Patch
Source: cverecord
https://go.dev/issue/78981
Patch
Source: cverecord
https://go.dev/cl/771180
Vendor Advisory
Source: cverecord
https://pkg.go.dev/vuln/GO-2026-4980

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.1MEDIUMCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-116

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card