
Cloud Vulnerability DB
A community-led vulnerabilities database
The html/template package in Go programming language contains a vulnerability (CVE-2023-39318) that was discovered in versions prior to 1.20.8 and from 1.21.0 before 1.21.1. The vulnerability stems from improper handling of HTML-like comment tokens and hashbang '#!' comment tokens within contexts (NVD, Go Advisory).
The vulnerability occurs when the template parser incorrectly interprets the contents of contexts, leading to improper escaping of actions. Specifically, the html/template package fails to properly handle HTML-like '' comment tokens, as well as hashbang '#!' comment tokens. The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).
When successfully exploited, this vulnerability could lead to Cross-Site Scripting (XSS) attacks. The impact includes potential disclosure of sensitive information and the possibility of data modification. The vulnerability affects confidentiality and integrity with low impact, while availability is not impacted (NetApp Advisory).
The vulnerability has been fixed in Go versions 1.20.8 and 1.21.1. Users are advised to upgrade to these or later versions to mitigate the risk. The fix was implemented through patches that properly handle comment tokens within script contexts (Golang Dev).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."