GHSA-3cgw-hfw7-wc7j: Duplicate Advisory Cross-Site Scripting Vulnerability

MODERATE
CVSS 4.8
CWE-79
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-3cgw-hfw7-wc7j
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

github.com/grafana/grafana fixed: 8.5.22
Upgrade github.com/grafana/grafana to 8.5.22
github.com/grafana/grafana fixed: 9.2.15
Upgrade github.com/grafana/grafana to 9.2.15
github.com/grafana/grafana fixed: 9.3.11
Upgrade github.com/grafana/grafana to 9.3.11
Verify Direct and Transitive Dependencies

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

## Duplicate Advisory This 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. ## Original Description Grafana 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.

GHSA-3cgw-hfw7-wc7j Affected Duplicate Advisory Versions

3 component(s)
Fixed Versions:
8.5.229.2.159.3.11
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?
GHSA-3cgw-hfw7-wc7j is a security vulnerability in Duplicate Advisory involving Grafana Stored Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 8.5.22, 9.2.15, 9.3.11 across affected packages: github.com/grafana/grafana.
What version fixes GHSA-3cgw-hfw7-wc7j?
Upgrading to 8.5.22, 9.2.15, 9.3.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/grafana affected?
Yes, github.com/grafana/grafana is affected in releases prior to 8.5.22, 9.2.15, 9.3.11. Upgrade your dependency to 8.5.22, 9.2.15, 9.3.11 or later.
What is the CVSS score of GHSA-3cgw-hfw7-wc7j?
GHSA-3cgw-hfw7-wc7j has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-3cgw-hfw7-wc7j?
GHSA-3cgw-hfw7-wc7j is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Go dependencies for GHSA-3cgw-hfw7-wc7j?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/grafana'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}