GHSA-3cgw-hfw7-wc7j: Duplicate Advisory Cross-Site Scripting Vulnerability
MODERATEGHSA-3cgw-hfw7-wc7j is a MODERATE (CVSS 4.8) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves grafana stored cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 8.5.22, 9.2.15, 9.3.11.
GHSA-3cgw-hfw7-wc7j at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N).
How to Fix GHSA-3cgw-hfw7-wc7j
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/grafana/grafana to 8.5.22
Upgrade github.com/grafana/grafana to 9.2.15
Upgrade github.com/grafana/grafana to 9.3.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/grafana/grafana
How to Check if You Are Affected
To determine whether your application is affected by GHSA-3cgw-hfw7-wc7j, inspect your project dependencies for Duplicate Advisory:
inspect dependencies for github.com/grafana/grafana
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.5.22), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-3cgw-hfw7-wc7j Affected Duplicate Advisory Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/grafana/grafana
|
Go |
< 8.5.22
|
8.5.22
|
|
github.com/grafana/grafana
|
Go |
≥ 9.0.0
< 9.2.15
|
9.2.15
|
|
github.com/grafana/grafana
|
Go |
≥ 9.3.0
< 9.3.11
|
9.3.11
|
References
Frequently Asked Questions
What is GHSA-3cgw-hfw7-wc7j?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-3cgw-hfw7-wc7j?
Is github.com/grafana/grafana affected?
What is the CVSS score of GHSA-3cgw-hfw7-wc7j?
What CWE is associated with GHSA-3cgw-hfw7-wc7j?
How can I check Go dependencies for GHSA-3cgw-hfw7-wc7j?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3cgw-hfw7-wc7j",
"modified" : "2025-02-13T18:41:49Z",
"published" : "2023-03-23T09:30:25Z",
"withdrawn" : "2023-03-23T20:10:27Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Grafana Stored Cross-site Scripting vulnerability",
"details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of [GHSA-qrrg-gw7w-vp76](https://github.com/advisories/GHSA-qrrg-gw7w-vp76). This link is maintained to preserve external references.\n\n## Original Description\nGrafana is an open-source platform for monitoring and observability. Grafana had a stored XSS vulnerability in the Graphite FunctionDescription tooltip. The stored XSS vulnerability was possible due the value of the Function Description was not properly sanitized. An attacker needs to have control over the Graphite data source in order to manipulate a function description and a Grafana admin needs to configure the data source, later a Grafana user needs to select a tampered function and hover over the description. Users may upgrade to version 8.5.22, 9.2.15 and 9.3.11 to receive a fix.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/grafana"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.5.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/grafana"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0"
}, {
"fixed" : "9.2.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/grafana"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.3.0"
}, {
"fixed" : "9.3.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/grafana/bugbounty/security/advisories/GHSA-qrrg-gw7w-vp76"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-1410"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/grafana/grafana"
}, {
"type" : "WEB",
"url" : "https://grafana.com/security/security-advisories/cve-2023-1410"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20230420-0003"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-23T20:10:27Z",
"nvd_published_at" : "2023-03-23T08:15:00Z"
}
}