CVEfocus › CVE database › CVE-2026-42502

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

CVSS 6.1 MediumEPSS 0.3% (higher than 17% of CVEs)Published 2026-05-22Updated 2026-05-22Assigner: Go

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.

What to do

Fixed builds are available from AlmaLinux, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

20Fixed
38Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04golang-golang-x-net-devFix pendingUBUNTU-CVE-2026-42502
Ubuntu 18.04golang-golang-x-net-devFix pendingUBUNTU-CVE-2026-42502
Ubuntu 16.04golang-golang-x-net-devFix pendingUBUNTU-CVE-2026-42502
Debian 14golang-golang-x-netFixed1:0.55.0-1DEBIAN-CVE-2026-42502
Debian 13golang-golang-x-netFix pendingDEBIAN-CVE-2026-42502
Debian 12golang-golang-x-netFix pendingDEBIAN-CVE-2026-42502
Red Hat Enterprise Linux 10grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 10grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 10gvisor-tap-vsockFix pending
Affected
Red Hat Enterprise Linux 10gvisor-tap-vsock-gvforwarderFix pending
Affected
Red Hat Enterprise Linux 10image-builderFixed0:52.1-2.el10_2RHSA-2026:67139
Red Hat Enterprise Linux 10opentelemetry-collectorFix pending
Fix deferred
Red Hat Enterprise Linux 10osbuild-composerFixed0:165.1-5.el10_2RHSA-2026:66432
Red Hat Enterprise Linux 10osbuild-composer-coreFixed0:165.1-5.el10_2RHSA-2026:66432
Red Hat Enterprise Linux 10osbuild-composer-workerFixed0:165.1-5.el10_2RHSA-2026:66432
Red Hat Enterprise Linux 10podmanFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-dockerFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-remoteFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 9grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 9gvisor-tap-vsockFix pending
Affected
Red Hat Enterprise Linux 9gvisor-tap-vsock-gvforwarderFix pending
Affected
Red Hat Enterprise Linux 9image-builderFixed0:52.1-2.el9_8RHSA-2026:67138
Red Hat Enterprise Linux 9opentelemetry-collectorFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composerFixed0:165.1-5.el9_8RHSA-2026:69293
Red Hat Enterprise Linux 9osbuild-composer-coreFixed0:165.1-5.el9_8RHSA-2026:69293
Red Hat Enterprise Linux 9osbuild-composer-workerFixed0:165.1-5.el9_8RHSA-2026:69293
Red Hat Enterprise Linux 9podmanFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-catatonitFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-dockerFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-gvproxyFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-pluginsFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-remoteFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-testsFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composerFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-coreFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-workerFix pending
Fix deferred
Red Hat Enterprise Linux 8podmanFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-catatonitFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-dockerFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-gvproxyFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-manpagesFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-pluginsFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-remoteFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-testsFix pending
Fix deferred
AlmaLinux 10osbuild-composerFixed165.1-5.el10_2.alma.1ALSA-2026:66432
AlmaLinux 10osbuild-composer-coreFixed165.1-5.el10_2.alma.1ALSA-2026:66432
AlmaLinux 10osbuild-composer-workerFixed165.1-5.el10_2.alma.1ALSA-2026:66432
AlmaLinux 9osbuild-composerFixed165.1-5.el9_8.alma.1ALSA-2026:69293
AlmaLinux 9osbuild-composer-coreFixed165.1-5.el9_8.alma.1ALSA-2026:69293
AlmaLinux 9osbuild-composer-workerFixed165.1-5.el9_8.alma.1ALSA-2026:69293
Rocky Linux 10image-builderFixed0:52.1-2.el10_2.rocky.0.1RLSA-2026:67139
Rocky Linux 10osbuild-composerFixed0:165.1-5.el10_2.rocky.0.1RLSA-2026:66432
Rocky Linux 9image-builderFixed0:52.1-2.el9_8RLSA-2026:67138
Rocky Linux 9osbuild-composerFixed0:165.1-5.el9_8.rocky.0.1RLSA-2026:69293
Go librarygolang.org/x/netFixed0.55.0GO-2026-5027

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.