GHSA-q53q-gxq9-mgrj

Suggest an improvement
Source
https://github.com/advisories/GHSA-q53q-gxq9-mgrj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-q53q-gxq9-mgrj/GHSA-q53q-gxq9-mgrj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q53q-gxq9-mgrj
Aliases
Related
Published
2025-05-22T09:33:21Z
Modified
2025-05-28T19:46:07Z
Downstream
Severity
  • 7.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L CVSS Calculator
Summary
Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin
Details

A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirect. This allows attackers to redirect users to a website that hosts a frontend plugin that will execute arbitrary JavaScript. This vulnerability does not require editor permissions and if anonymous access is enabled, the XSS will work. If the Grafana Image Renderer plugin is installed, it is possible to exploit the open redirect to achieve a full read SSRF.

The default Content-Security-Policy (CSP) in Grafana will block the XSS though the connect-src directive.

Database specific
{
    "nvd_published_at": "2025-05-22T08:15:52Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-05-22T18:50:43Z"
}
References

Affected packages

Go / github.com/grafana/grafana

Package

Name
github.com/grafana/grafana
View open source insights on deps.dev
Purl
pkg:golang/github.com/grafana/grafana

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20250521183405-c7a690348df7