CVE-2026-42502

Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html

MEDIUM
6.1
CVSS Score
Published: May 22, 2026 at 03:01 PM UTC
Updated: July 23, 2026 at 07:32 PM UTC
2 products affected across 2 vendors.NET.NET

Using golang.org/x/net/html by golang.org/x/net?

Get instant alerts when new vulnerabilities affect golang.org/x/net/html - before attackers find them.

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

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.

Affected

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

v < 0.55.0
Affected range stops below 0.55.0, so it looks safe — our inference, not a vendor statement
v < 0.55.0
Affected range stops below 0.55.0, 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:

Patch and advisory references

References (4)

Issue Tracking
Source: cverecord
https://go.dev/issue/79572
Issue Tracking
Source: cverecord
https://go.dev/cl/781701
Vendor Advisory
Source: cverecord
https://pkg.go.dev/vuln/GO-2026-5027

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-1021

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