CVE-2023-5123
Improper Path Sanitization in JSON Datasource Plugin
Mitigation
- Upgrade grafana-json-datasource to 1.3.21 or later.
Who should check
- Anyone running grafana-json-datasource >= 0.2.0, < 1.3.21
Vulnerability facts
- Affected
- grafana-json-datasource >= 0.2.0, < 1.3.21
- Fixed in
- grafana-json-datasource 1.3.21
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.91% chance of exploitation in 30 days (percentile 58, 2026-11-26)
- CWE
- CWE-22
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| grafana-json-datasource | >= 0.2.0, < 1.3.21 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-5123. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-5123.md Affected: grafana-json-datasource >= 0.2.0, < 1.3.21 Fixed in: grafana-json-datasource 1.3.21 Steps: 1. Search this machine and project for grafana-json-datasource: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-5123 being exploited?
There is no confirmed exploitation: CVE-2023-5123 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.91% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-5123?
High: CVSS 8.0 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2023-5123?
grafana-json-datasource >= 0.2.0, < 1.3.21.
Is there a fix for CVE-2023-5123?
Yes. Fixed in grafana-json-datasource 1.3.21. Upgrade grafana-json-datasource to 1.3.21 or later.
How do I check if I'm affected by CVE-2023-5123?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.