CVEsgolang.org/x/netCVE-2026-27136Published May 22, 15:01 · Updated May 22, 16:59 UTC
6.1
MediumCVSS 3.1 · from CISA
CVE-2026-27136

Invoking duplicate attributes can cause XSS in golang.org/x/net/html

golang.org/x/net/html · CWE-1021 · CWE-1021
Affectedgolang.org/x/net/html
FixUpdate to 0.55.0 or newer
PublishedMay 22, 15:01 · Go
Scored6.1 · CISA
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:05 UTC

What we know

No known exploitation. CISA KEV, checked 22:05 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
Someone has to open, click or run something first. CVSS: user interaction required.

Description

Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications that attempt to sanitize input HTML before rendering.

From Go

Affected and fixed versions

ProductAffectedFixed ingolang.org/x/net/htmlbefore 0.55.00.55.0

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

go.dev/issue/79575 · go.devgroups.google.com/g/golang-announce/c/iI-mYSI0lu8 · groups.google.comgo.dev/cl/781685 · go.devpkg.go.dev/vuln/GO-2026-5030 · pkg.go.dev

Other CVEs in golang.org/x/net/html

All 11 →
–Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net · CVE-2026-97045Oct 27–Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net · CVE-2026-78661Oct 276.1Invoking incorrect handling of character references in DOCTYPE nodes in golang.org/x/net/html · CVE-2026-25681May 22