CVE-2026-42506: Invoking incorrect handling of namespaced elements in foreign content in golang.org/x/net/html

Published May 22, 2026
·
Updated

Invoking incorrect handling of namespaced elements in foreign content in golang.org/x/net/html

Other sources

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.

— MITRE

Affected Software

77 affected componentsFixes available
golang/golang.org/x/net/html
Microsoft azl3 telegraf 1.31.0-19
Microsoft azl3 docker-buildx 0.14.0-11
Microsoft azl3 keda 2.14.1-11
Microsoft azl3 docker-compose 2.27.0-9
Microsoft azl3 gh 2.62.0-15
Microsoft azl3 multus 4.0.2-7
Microsoft azl3 cloud-provider-kubevirt 0.5.1-3
Microsoft azl3 containerd2 2.1.6-2
Microsoft azl3 cf-cli 8.7.11-5
Microsoft azl3 sriov-network-device-plugin 3.7.0-5
Microsoft azl3 prometheus-adapter 0.12.0-5
Microsoft azl3 packer 1.9.5-13
Microsoft azl3 cri-tools 1.32.0-4
Microsoft azl3 application-gateway-kubernetes-ingress 1.7.7-3
Microsoft azl3 kubevirt 1.7.1-2
Microsoft azl3 influxdb 2.7.5-15
Microsoft azl3 kube-vip-cloud-provider 0.0.10-5
Microsoft azl3 cert-manager 1.12.15-6
Microsoft azl3 containerized-data-importer 1.62.0-3
Microsoft azl3 kubernetes 1.30.10-23
Microsoft azl3 sriov-network-device-plugin 3.7.0-6
Microsoft azl3 kubernetes 1.30.10-25
Microsoft azl3 cni-plugins 1.4.0-5
Microsoft azl3 dasel 2.8.1-3
Golang Net Go<0.55.0
IBM API Connect<=V10.0.8.0 - V10.0.8.13
ubuntu/golang-golang-x-net-dev*
ubuntu/golang-golang-x-net-dev*
ubuntu/golang-golang-x-net-dev*
All of the following
azurelinux/cni-plugins<1.4.0-6
1.4.0-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/dasel<2.8.1-4
2.8.1-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/sriov-network-device-plugin<3.7.0-6
3.7.0-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/kubernetes<1.30.10-25
1.30.10-25
Microsoft Azure Linux=3.0
All of the following
azurelinux/packer<1.9.5-14
1.9.5-14
Microsoft Azure Linux=3.0
All of the following
azurelinux/kubevirt<1.7.1-5
1.7.1-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/prometheus-adapter<0.12.0-6
0.12.0-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/influxdb<2.7.5-17
2.7.5-17
Microsoft Azure Linux=3.0
All of the following
azurelinux/kube-vip-cloud-provider<0.0.10-6
0.0.10-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/gh<2.62.0-16
2.62.0-16
Microsoft Azure Linux=3.0
All of the following
azurelinux/multus<4.0.2-8
4.0.2-8
Microsoft Azure Linux=3.0
All of the following
azurelinux/keda<2.14.1-13
2.14.1-13
Microsoft Azure Linux=3.0
All of the following
azurelinux/docker-compose<2.27.0-11
2.27.0-11
Microsoft Azure Linux=3.0
All of the following
azurelinux/cri-tools<1.32.0-6
1.32.0-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/containerized-data-importer<1.62.0-5
1.62.0-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/telegraf<1.31.0-21
1.31.0-21
Microsoft Azure Linux=3.0
All of the following
azurelinux/docker-buildx<0.14.0-13
0.14.0-13
Microsoft Azure Linux=3.0
All of the following
azurelinux/application-gateway-kubernetes-ingress<1.7.7-4
1.7.7-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/cert-manager<1.12.15-8
1.12.15-8
Microsoft Azure Linux=3.0
All of the following
azurelinux/containerd2<2.1.6-3
2.1.6-3
Microsoft Azure Linux=3.0
All of the following
azurelinux/cf-cli<8.7.11-6
8.7.11-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/gvisor-tap-vsock<6:0.9.0-2.azl4
6:0.9.0-2.azl4
Microsoft Azure Linux=4.0
All of the following
azurelinux/cloud-provider-kubevirt<0.5.1-4
0.5.1-4
Microsoft Azure Linux=3.0
debian/golang-golang-x-net
1:0.55.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/golang-golang-x-net to a version that resolves this vulnerability.

    Fixed in 1:0.55.0-1
  2. Upgrade

    Upgrade azurelinux/cni-plugins to a version that resolves this vulnerability.

    Fixed in 1.4.0-6
  3. Upgrade

    Upgrade azurelinux/dasel to a version that resolves this vulnerability.

    Fixed in 2.8.1-4
  4. Upgrade

    Upgrade azurelinux/sriov-network-device-plugin to a version that resolves this vulnerability.

    Fixed in 3.7.0-6
  5. Upgrade

    Upgrade azurelinux/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.30.10-25
  6. Upgrade

    Upgrade azurelinux/packer to a version that resolves this vulnerability.

    Fixed in 1.9.5-14
  7. Upgrade

    Upgrade azurelinux/kubevirt to a version that resolves this vulnerability.

    Fixed in 1.7.1-5
  8. Upgrade

    Upgrade azurelinux/prometheus-adapter to a version that resolves this vulnerability.

    Fixed in 0.12.0-6
  9. Upgrade

    Upgrade azurelinux/influxdb to a version that resolves this vulnerability.

    Fixed in 2.7.5-17
  10. Upgrade

    Upgrade azurelinux/kube-vip-cloud-provider to a version that resolves this vulnerability.

    Fixed in 0.0.10-6
  11. Upgrade

    Upgrade azurelinux/gh to a version that resolves this vulnerability.

    Fixed in 2.62.0-16
  12. Upgrade

    Upgrade azurelinux/multus to a version that resolves this vulnerability.

    Fixed in 4.0.2-8
  13. Upgrade

    Upgrade azurelinux/keda to a version that resolves this vulnerability.

    Fixed in 2.14.1-13
  14. Upgrade

    Upgrade azurelinux/docker-compose to a version that resolves this vulnerability.

    Fixed in 2.27.0-11
  15. Upgrade

    Upgrade azurelinux/telegraf to a version that resolves this vulnerability.

    Fixed in 1.31.0-21
  16. Upgrade

    Upgrade azurelinux/cri-tools to a version that resolves this vulnerability.

    Fixed in 1.32.0-6
  17. Upgrade

    Upgrade azurelinux/containerized-data-importer to a version that resolves this vulnerability.

    Fixed in 1.62.0-5
  18. Upgrade

    Upgrade azurelinux/docker-buildx to a version that resolves this vulnerability.

    Fixed in 0.14.0-13
  19. Upgrade

    Upgrade azurelinux/application-gateway-kubernetes-ingress to a version that resolves this vulnerability.

    Fixed in 1.7.7-4
  20. Upgrade

    Upgrade azurelinux/cert-manager to a version that resolves this vulnerability.

    Fixed in 1.12.15-8
  21. Upgrade

    Upgrade azurelinux/cf-cli to a version that resolves this vulnerability.

    Fixed in 8.7.11-6
  22. Upgrade

    Upgrade azurelinux/containerd2 to a version that resolves this vulnerability.

    Fixed in 2.1.6-3
  23. Upgrade

    Upgrade azurelinux/gvisor-tap-vsock to a version that resolves this vulnerability.

    Fixed in 6:0.9.0-2.azl4
  24. Upgrade

    Upgrade azurelinux/cloud-provider-kubevirt to a version that resolves this vulnerability.

    Fixed in 0.5.1-4

Event History

May 22, 2026
CVE Published
via MITRE·03:01 PM
Data Sourced
via MITRE·03:01 PM
DescriptionWeakness
Data Sourced
via Red Hat·04:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·04:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:16 PM
DescriptionSeverity
May 27, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:05 AM
Affected Software
Updated
via Microsoft·08:05 AM
Weakness
May 29, 2026
Data Sourced
via NVD·07:06 PM
WeaknessAffected Software
Jul 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jul 27, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 1, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 26, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 9, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 18, 2026
Updated
via IBM·12:00 AM
Affected Software
Dec 1, 2026
Updated
via Microsoft·09:32 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-42506?

CVE-2026-42506 has a risk score of 52, indicating a moderate vulnerability.

2

What should I do to fix CVE-2026-42506?

To address CVE-2026-42506, ensure that your HTML parsing and rendering logic correctly handles namespaced elements.

3

What types of attacks can be executed due to CVE-2026-42506?

CVE-2026-42506 can be exploited to execute cross-site scripting (XSS) attacks.

4

What software is affected by CVE-2026-42506?

CVE-2026-42506 affects the golang.org/x/net/html package in the Go programming language.

5

When was CVE-2026-42506 published?

CVE-2026-42506 was published on May 22, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203