CVE-2023-3978: Improper rendering of text nodes in golang.org/x/net/html

Published Aug 2, 2023
·
Updated

Golang html package is vulnerable to cross-site scripting, caused by improper validation of user-supplied input. A remote attacker could exploit this vulnerability using a specially crafted URL to execute script in a victim's Web browser within the security context of the hosting Web site, once the URL is clicked. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.

Other sources

Improper rendering of text nodes in golang.org/x/net/html

Microsoft

Text nodes not in the HTML namespace are incorrectly literally rendered, causing text which should be escaped to not be. This could lead to an XSS attack.

Affected Software

26 affected componentsFixes available
go/golang.org/x/net<0.13.0
0.13.0
Golang Networking Go<0.13.0
redhat/golang.org/x/net/html<0.13.0
0.13.0
Microsoft azl3 kubevirt 1.2.0-1
Microsoft azl3 prometheus-adapter 0.12.0-1
Microsoft azl3 cert-manager 1.11.2-8
Microsoft azl3 cert-manager 1.12.12-1
Microsoft azl3 multus 4.0.2-5
Microsoft azl3 containerized-data-importer 1.57.0-12
Microsoft cbl2 telegraf 1.27.4-1
Microsoft azl3 application-gateway-kubernetes-ingress 1.7.7-1
Microsoft azl3 vitess 19.0.4-2
Microsoft azl3 telegraf 1.29.4-1
Microsoft cbl2 cni-plugins 1.3.0-6
Microsoft cbl2 cert-manager 1.11.2-14
Microsoft cbl2 kubevirt 0.59.0-24
Microsoft azl3 multus 4.0.2-2
Microsoft cbl2 vitess 17.0.7-1
Microsoft cbl2 multus 4.0.2-5
Microsoft azl3 vitess 17.0.2-1
Microsoft azl3 telegraf 1.27.3-4
Microsoft cbl2 packer 1.9.5-3
Microsoft azl3 prometheus-adapter 0.11.2-1
Microsoft azl3 application-gateway-kubernetes-ingress 1.7.2-3
Microsoft azl3 kubevirt 0.59.0-14
Microsoft cbl2 packer 1.8.7-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/golang.org/x/net to a version that resolves this vulnerability.

    Fixed in 0.13.0
  2. Upgrade

    Upgrade redhat/golang.org/x/net/html to a version that resolves this vulnerability.

    Fixed in 0.13.0

Event History

Aug 2, 2023
CVE Published
via MITRE·07:48 PM
Data Sourced
via MITRE·07:48 PM
DescriptionWeakness
Data Sourced
08:15 PM
Description
Advisory Published
09:30 PM
Aug 3, 2023
Data Sourced
via Red Hat·05:50 AM
DescriptionSeverityAffected Software
Aug 8, 2023
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Feb 4, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-3978?

CVE-2023-3978 is a vulnerability that allows text nodes not in the HTML namespace to be incorrectly literally rendered, potentially leading to an XSS attack.

2

What is the severity of CVE-2023-3978?

The severity of CVE-2023-3978 is medium with a CVSS score of 6.1.

3

Which software is affected by CVE-2023-3978?

The Golang Networking software up to version 0.13.0 is affected by CVE-2023-3978.

4

How can CVE-2023-3978 be exploited?

CVE-2023-3978 can be exploited by injecting malicious code into text nodes not in the HTML namespace.

5

How can I fix CVE-2023-3978?

To fix CVE-2023-3978, update your Golang Networking software to a version higher than 0.13.0.

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