Vulnerability · Published May 22, 2026 · Assigned by Go
CVE-2026-42502Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html
Medium 6.1
In plain English
A medium-severity security flaw in golang.org/x/net/html from golang.org/x/net. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.2%top 87.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | osbuild-composer | 165.1-5.el10_2.alma.1 | ALSA-2026:66432 |
| AlmaLinux:9 | osbuild-composer | 165.1-5.el9_8.alma.1 | ALSA-2026:69293 |
| AlmaLinux:10 | osbuild-composer-core | 165.1-5.el10_2.alma.1 | ALSA-2026:66432 |
| AlmaLinux:9 | osbuild-composer-core | 165.1-5.el9_8.alma.1 | ALSA-2026:69293 |
| AlmaLinux:10 | osbuild-composer-worker | 165.1-5.el10_2.alma.1 | ALSA-2026:66432 |
| AlmaLinux:9 | osbuild-composer-worker | 165.1-5.el9_8.alma.1 | ALSA-2026:69293 |
| Debian:12 | golang-golang-x-net | no fix listed | DEBIAN-CVE-2026-42502 |
| Debian:13 | golang-golang-x-net | no fix listed | DEBIAN-CVE-2026-42502 |
| Debian:14 | golang-golang-x-net | 1:0.55.0-1 | DEBIAN-CVE-2026-42502 |
| Go | golang.org/x/net | 0.55.0 | GO-2026-5027 |
| Rocky Linux:10 | image-builder | 0:52.1-2.el10_2.rocky.0.1 | RLSA-2026:67139 |
| Rocky Linux:9 | image-builder | 0:52.1-2.el9_8 | RLSA-2026:67138 |
| Rocky Linux:10 | osbuild-composer | 0:165.1-5.el10_2.rocky.0.1 | RLSA-2026:66432 |
| Rocky Linux:9 | osbuild-composer | 0:165.1-5.el9_8.rocky.0.1 | RLSA-2026:69293 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| golang.org/x/net | golang.org/x/net/html | 0 – before 0.55.0 |