Read the docs
TI-2023-04712 Aliases CVE-2023-5123GHSA-xg2r-m5g9-vr82

Improper Path Sanitization in JSON Datasource Plugin

Priority LOW 38CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

The JSON datasource plugin ( https://grafana.com/grafana/plugins/marcusolsson-json-datasource/ ) is a Grafana Labs maintained plugin for Grafana that allows for retrieving and processing JSON data from a remote endpoint (including a specific sub-path) configured by an administrator. Due to inadequate sanitization of the dashboard-supplied path parameter, it was possible to include path traversal characters (../) in the path parameter and send requests to paths on the configured endpoint outside the configured sub-path. This means that if the datasource was configured by an administrator to point at some sub-path of a domain (e.g. https://example.com/api/some_safe_api/ ), it was possible for an editor to create a dashboard referencing the datasource which issues queries containing path traversal characters, which would in turn cause the datasource to instead query arbitrary subpaths on the configured domain (e.g. https://example.com/api/admin_api/) . In the rare case that this plugin is configured by an administrator to point back at the Grafana instance itself, this vulnerability becomes considerably more severe, as an administrator browsing a maliciously configured panel could be compelled to make requests to Grafana administrative API endpoints with their credentials, resulting in the potential for privilege escalation, hence the high score for this vulnerability.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0077 55th percentileScored 2026-11-07
Fix Fixed grafana-json-datasource (Grafana): 1.3.21

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Grafanagrafana-json-datasource0.2.0 to before 1.3.211.3.21Patch availableCNA
  • grafana-json-datasource VendorGrafana Affected 0.2.0 to before 1.3.21 Fixed in 1.3.21 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:grafana:json_api_data_source:*:*:*:*:*:grafana:*:*before 1.3.21VulnerableGrafana
  • cpe:2.3:a:grafana:json_api_data_source:*:*:*:*:*:grafana:*:* Versions before 1.3.21 Vulnerable ·Grafana

Remediation

  • Fix · CNA grafana-json-datasource (Grafana) Fixed in 1.3.21

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-5123
  2. 2026-10-03 Alias added: GHSA-xg2r-m5g9-vr82

References

Sources