cve.bz

CVE-2026-42506 golang net: Cross-site Scripting

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.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 15th 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-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
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-42506 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42506?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42506?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-42506 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-5025Gogolang.org/x/net<0.55.00.55.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-golang-x-netno fix listedDEBIAN-CVE-2026-42506
Debian14golang-golang-x-net1:0.55.0-1DEBIAN-CVE-2026-42506
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSgolang-golang-x-net-devno fix listedUBUNTU-CVE-2026-42506
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
8 more for openSUSE in the JSON and on openSUSE's page.
Azure Linux3application-gateway-kubernetes-ingress1.7.7-5AZL-87363
Azure Linux3azl-otel-collectorno fix listedAZL-87152
Azure Linux3cert-manager1.12.15-9AZL-87432
Azure Linux3cf-cli8.7.11-6AZL-87477
Azure Linux3cloud-provider-kubevirt0.5.1-4AZL-87483
Azure Linux3cni-plugins1.4.0-6AZL-87504
Azure Linux3containerd22.2.4-2AZL-87528
Azure Linux3containerized-data-importer1.62.0-6AZL-87546
Azure Linux3cri-ono fix listedAZL-87209
Azure Linux3cri-tools1.32.0-6AZL-87579
Azure Linux3dasel2.8.1-4AZL-87594
Azure Linux3docker-buildx0.14.0-13AZL-87645
15 more for Azure Linux in the JSON.
Alpaquita23runc, podman, skopeo and 2 moreno fix listedBELL-CVE-2026-42506
Alpaquita25runc, podman, skopeo and 6 moreno fix listedBELL-CVE-2026-42506
Alpaquitastreametcd, helm, runc and 13 moreno fix listedBELL-CVE-2026-42506

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

This Moderate flaw in `golang.org/x/net/html` can lead to Cross-Site Scripting (XSS) in applications that process and render untrusted HTML, even when input sanitization is implemented. The vulnerability arises from an unexpected HTML tree structure generated during parsing, potentially allowing a remote attacker to execute arbitrary script code in the user's browser, leading to information disclosure or unauthorized actions.

Red Hat's mitigation

Update affected Go applications to use golang.org/x/net version 0.55.0 or later. As a workaround, do not use golang.org/x/net/html to parse and re-render untrusted HTML content. Applications that do not parse arbitrary HTML are not affected.

ProductPackageStateAdvisory
Cert Manager support for Red Hat OpenShift release 1.17cert-manager/jetstack-cert-manager-acmesolver-rhel9:1791371080Fixed 2026-10-13RHSA-2026:82304
Cert Manager support for Red Hat OpenShift release 1.17cert-manager/jetstack-cert-manager-rhel9:1791371069Fixed 2026-10-13RHSA-2026:82304
Cert Manager support for Red Hat OpenShift release 1.17cert-manager/cert-manager-operator-rhel9:1791788287Fixed 2026-10-13RHSA-2026:82322
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9:1782840519Fixed 2026-07-01RHSA-2026:34342
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9:1782839981Fixed 2026-07-01RHSA-2026:34342
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9:1782839193Fixed 2026-07-01RHSA-2026:34342
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-rhel9:1782838753Fixed 2026-07-01RHSA-2026:34342
Cluster Observability Operator 1.5cluster-observability-operator/logging-console-plugin-pf4-rhel9:1782839279Fixed 2026-07-01RHSA-2026:34342
Cluster Observability Operator 1.5cluster-observability-operator/logging-console-plugin-pf5-rhel9:1782840539Fixed 2026-07-01RHSA-2026:34342
Cluster Observability Operator 1.5cluster-observability-operator/monitoring-console-plugin-pf5-rhel9:1782844225Fixed 2026-07-01RHSA-2026:34342
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Fix deferred
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-rhel9Fix deferred
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
523 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-42506.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

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

References

Check your stackJSON