CVE-2023-3978: Improper rendering of text nodes in golang.org/x/net/html
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/golang.org/x/netto a version that resolves this vulnerability.Fixed in 0.13.0 - Upgrade
Upgrade
redhat/golang.org/x/net/htmlto a version that resolves this vulnerability.Fixed in 0.13.0
Event History
Frequently Asked Questions
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.
What is the severity of CVE-2023-3978?
The severity of CVE-2023-3978 is medium with a CVSS score of 6.1.
Which software is affected by CVE-2023-3978?
The Golang Networking software up to version 0.13.0 is affected by CVE-2023-3978.
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.
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.