CVE-2026-42502 | Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html

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.

Published: 2026-05-22 Last update: 2026-05-29 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-42502 is rated Low Risk (27.6/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.03%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2026-42502

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-23 0.03%

Full EPSS history (1 record total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-42502

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.1 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.7 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2026-42502

GitHub Security Advisory for CVE-2026-42502

GHSA-wrh2-89vg-4j9g · Severity: medium — Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree....

OS Trackers for CVE-2026-42502

vendor priority summary link
debian not yet assigned CVE-2026-42502 not yet assigned priority: Debian including 1 source packages (golang-golang-x-net), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. https://security-tracker.debian.org/tracker/CVE-2026-42502
suse medium CVE-2026-42502 severity moderate: SUSE including 3 source package names (rclone-1.74.2-1.1, rclone-bash-completion-1.74.2-1.1, rclone-zsh-completion-1.74.2-1.1), 3 product×package rows across 1 product lines (openSUSE Tumbleweed): Fixed 3. https://www.suse.com/security/cve/CVE-2026-42502/
ubuntu medium CVE-2026-42502 medium priority: Ubuntu including 1 source packages (golang-golang-x-net-dev), 8 status rows across 8 suites (bionic, focal, jammy, noble, questing, resolute, upstream, xenial): DNE 4, needs-triage 4. https://ubuntu.com/security/CVE-2026-42502

Affected software / configurations for CVE-2026-42502

Vendor Product Version Raw CPE
golang net < 0.55.0 cpe:2.3:a:golang:net:*:*:*:*:*:go:*:*

References for CVE-2026-42502

cvelogic Threat Intelligence