CVE-2023-39318
Grafana vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Grafana vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-41115CRITICAL10
  • GrafanaGrafana
  • grafana-fips-12.0
NoYesNov 21, 2025
CVE-2025-66031HIGH8.7
  • JavaScriptJavaScript
  • opensearch-dashboards-2-fips
NoYesNov 26, 2025
CVE-2025-61725HIGH7.5
  • cAdvisorcAdvisor
  • cluster-api-helm-controller
NoYesOct 29, 2025
CVE-2025-61723HIGH7.5
  • cAdvisorcAdvisor
  • tempo-fips
NoYesOct 29, 2025
CVE-2025-61724MEDIUM5.3
  • cAdvisorcAdvisor
  • direnv
NoYesOct 29, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management