🛡️ CVE-2026-42502 — net

🟡 CVSS 6.1 — Medium ✅ No Known Exploit NVD
6.1
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.

Affected software

CVE-2026-42502 is recorded against 3 packages.

  • golang.org/x/net
  • net (fixed in 0.55.0)
  • unknown

Timeline and source

Published on 22 May 2026 and last revised on 30 May 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

go.dev (Report)
groups.google.com (Web)
go.dev (Fix)

CVE-2026-42502 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 6.1
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2026-05-22
Updated 2026-08-12
Modified 2026-05-30

Affected Packages

Software From version Fixed in
golang.org/x/net
net 0.55.0
unknown

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in net

CVE-2026-42502 is rated CVSS 6.1 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.