cve.bz

CVE-2026-42502 golang net

6.1 mediumEPSS 0.2%Fix available

Medium (6.1) in golang net. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in golang.org/x/net 0.55.0.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1021 Improper Restriction of Rendered UI Layers or Frames
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42502 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42502?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42502?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42502 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
golang.org/x/net/htmlbefore 0.55.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-5027Gogolang.org/x/net<0.55.00.55.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-golang-x-netno fix listedDEBIAN-CVE-2026-42502
Debian14golang-golang-x-net1:0.55.0-1DEBIAN-CVE-2026-42502
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSgolang-golang-x-net-devno fix listedUBUNTU-CVE-2026-42502
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morecosign3.1.1-150400.3.45.1SUSE-SU-2026:2827-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morebuildah1.35.5-150400.3.68.1SUSE-SU-2026:2706-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Module for Containers 15 SP7 and 4 morebuildah1.35.5-150500.3.62.1SUSE-SU-2026:2733-1
SUSELinux Enterprise Module for Basesystem 15 SP7alloy1.17.1-150700.15.23.1SUSE-SU-2026:2824-1
SUSELinux Enterprise Module for Containers 15 SP7containerized-data-importer1.64.0-150700.9.14.1SUSE-SU-2026:4209-1
SUSELinux Enterprise Module for Containers 15 SP7kubevirt1.7.4-150700.3.30.1SUSE-SU-2026:3203-1
SUSELinux Enterprise Module for Containers 15 SP7kubevirt-1.61.6.6-150700.15.17.1SUSE-SU-2026:3630-1
SUSELinux Enterprise Module for Package Hub 15 SP7grafana12.4.5-150200.3.91.1SUSE-SU-2026:3718-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-aws3.11.0-150200.6.18.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-azurerm2.32.0-150200.6.12.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-external2.0.0-150200.6.12.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-google3.43.0-150200.6.12.1SUSE-SU-2026:3056-1
33 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0alloy1.17.0-160000.1.1openSUSE-SU-2026:21251-1
openSUSELeap 16.0containerized-data-importer1.651.65.0-160000.3.1openSUSE-SU-2026:21824-1
openSUSELeap 16.0cosign3.1.1-160000.1.1openSUSE-SU-2026:21281-1
openSUSELeap 16.0glab1.114.0-bp160.1.1openSUSE-SU-2026:21662-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSELeap 16.0grafana11.6.14+security04-bp160.2.1openSUSE-SU-2026:20984-1
openSUSELeap 16.0hauler2.0.1-bp160.1.1openSUSE-SU-2026:21262-1
openSUSELeap 16.0kubevirt1.81.8.4-160000.1.1openSUSE-SU-2026:21590-1
openSUSELeap 16.0lux0.24.1-bp160.1.1openSUSE-SU-2026:21367-1
openSUSELeap 16.0mcphost0.34.0-160000.2.1openSUSE-SU-2026:21120-1
openSUSELeap 16.0neonmodem1.0.7+git0.346d1d3-bp160.1.1openSUSE-SU-2026:20963-1
openSUSELeap 16.0rclone1.74.4-bp160.1.1openSUSE-SU-2026:21436-1
9 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux9osbuild-composer, osbuild-composer-core, osbuild-composer-worker165.1-5.el9_8.alma.1ALSA-2026:69293
AlmaLinux10osbuild-composer, osbuild-composer-core, osbuild-composer-worker165.1-5.el10_2.alma.1ALSA-2026:66432
Rocky Linux9image-builder0:52.1-2.el9_8RLSA-2026:67138
Rocky Linux9osbuild-composer0:165.1-5.el9_8.rocky.0.1RLSA-2026:69293
Rocky Linux10image-builder0:52.1-2.el10_2.rocky.0.1RLSA-2026:67139
Rocky Linux10osbuild-composer0:165.1-5.el10_2.rocky.0.1RLSA-2026:66432
Azure Linux3application-gateway-kubernetes-ingress1.7.7-5AZL-87372
Azure Linux3azl-otel-collectorno fix listedAZL-87149
Azure Linux3cert-manager1.12.15-9AZL-87420
Azure Linux3cf-cli8.7.11-7AZL-87456
Azure Linux3cloud-provider-kubevirt0.5.1-5AZL-87489
Azure Linux3cni-plugins1.4.0-6AZL-87519
Azure Linux3containerd22.2.4-4AZL-87531
Azure Linux3containerized-data-importer1.62.0-6AZL-87549
Azure Linux3cri-ono fix listedAZL-87245
Azure Linux3cri-tools1.32.0-6AZL-87588
Azure Linux3dasel2.8.1-4AZL-87597
Azure Linux3docker-buildx0.14.0-15AZL-87639
15 more for Azure Linux in the JSON.
Alpaquita23runc, podman, skopeo and 2 moreno fix listedBELL-CVE-2026-42502
Alpaquita25runc, podman, skopeo and 6 moreno fix listedBELL-CVE-2026-42502
Alpaquitastreametcd, helm, runc and 13 moreno fix listedBELL-CVE-2026-42502

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw in golang.org/x/net/html can lead to Cross-Site Scripting (XSS) in applications that parse and render untrusted HTML, even with sanitization attempts. This is due to an unexpected HTML tree structure, allowing malicious scripts to execute in a user's browser.

Red Hat's mitigation

Applications utilizing `golang.org/x/net/html` should implement robust sanitization of all untrusted HTML input before rendering to prevent the creation of unexpected HTML structures that could facilitate XSS attacks. If an application does not require rendering arbitrary HTML, it should avoid processing such input.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10osbuild-composer-0:165.1-5.el10_2Fixed 2026-09-11RHSA-2026:66432
Red Hat Enterprise Linux 10image-builder-0:52.1-2.el10_2Fixed 2026-09-14RHSA-2026:67139
Red Hat Enterprise Linux 10.0 Extended Update Supportosbuild-composer-0:134.1-10.el10_0Fixed 2026-09-03RHSA-2026:63134
Red Hat Enterprise Linux 10.0 Extended Update Supportgrafana-0:10.2.6-26.el10_0Fixed 2026-09-15RHSA-2026:67517
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportosbuild-composer-0:46.3-11.el8_6Fixed 2026-10-26RHSA-2026:90493
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onosbuild-composer-0:46.3-11.el8_6Fixed 2026-10-26RHSA-2026:90493
Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceosbuild-composer-0:75-12.el8_8Fixed 2026-10-26RHSA-2026:90363
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsosbuild-composer-0:75-12.el8_8Fixed 2026-10-26RHSA-2026:90363
Red Hat Enterprise Linux 9image-builder-0:52.1-2.el9_8Fixed 2026-09-14RHSA-2026:67138
Red Hat Enterprise Linux 9osbuild-composer-0:165.1-5.el9_8Fixed 2026-09-21RHSA-2026:69293
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-agent-rhel9Fix deferred
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Fix deferred
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-rhel9-operatorFix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-shared-resource-rhel9Fix deferred
666 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42502.

Attack patterns (CAPEC)

  • CAPEC-103 Clickjacking Likelihood: Medium · Severity: High
  • CAPEC-181 Flash File Overlay Severity: Medium
  • CAPEC-222 iFrame Overlay Likelihood: Medium · Severity: High
  • CAPEC-504 Task Impersonation Likelihood: Medium · Severity: High
  • CAPEC-506 Tapjacking Likelihood: Low · Severity: Low
  • CAPEC-587 Cross Frame Scripting (XFS) Severity: High
  • CAPEC-654 Credential Prompt Impersonation Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON