# GHSA-F74P-CWHP-X2WX: The Loki datasource plugin's callResource handler contains a path traversal vulnerability

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-06-22
- Modified: 2026-09-28

## Tracked as

- [CVE-2026-42129](https://cve.now/CVE-2026-42129.md): Path traversal in the Loki data source plugin

## Also published as

- [GO-2026-6544](https://cve.now/GO-2026-6544.md) (Go)

## Affected versions

- github.com/grafana/grafana (Go): from 2.0.0-beta1
- github.com/grafana/grafana (Go): from 12.0.0
- github.com/grafana/grafana (Go): from 12.3.0
- github.com/grafana/grafana (Go): from 13.0.0
- github.com/grafana/grafana (Go): from 12.4.0
- github.com/grafana/grafana (Go): fixed in 1.9.2-0.20260616075434-82ef13993059

## Description

The Loki datasource plugin's callResource handler contains a path traversal vulnerability. An authenticated Viewer-role user can escape the plugin's resource sandbox and access administrative Loki endpoints (e.g. /config, /services, /ready) to extract sensitive backend configuration and internal service information.

## References

- https://nvd.nist.gov/vuln/detail/CVE-2026-42129
- https://github.com/grafana/grafana/commit/3fcdbc5a6e5c955bd42bd3715dd03cbad2b078c1
- https://github.com/grafana/grafana/commit/42cdc39124912a8506a0c613c319c345aa950b29
- https://github.com/grafana/grafana/commit/82ef13993059351bf21de35b8488bbd9b42df4f4
- https://github.com/grafana/grafana/commit/d27d2eba9c509d16f214d290436a6ad0bd9c6c01
- https://github.com/grafana/grafana/commit/dd5dc51681ff0133ddb2e206c2ea318713aeca16
- https://github.com/grafana/grafana/commit/eeb08ceb020c4381242d8400e5878044e9877505
- https://github.com/grafana/grafana/commit/f70d3e480274a5dbd12006338c393f4b05d441ca
- https://github.com/grafana/grafana
- https://github.com/grafana/grafana/releases/tag/v11.6.15
- https://github.com/grafana/grafana/releases/tag/v12.2.9
- https://github.com/grafana/grafana/releases/tag/v12.3.7
- https://github.com/grafana/grafana/releases/tag/v12.4.4
- https://github.com/grafana/grafana/releases/tag/v13.0.2
- https://grafana.com/security/security-advisories/cve-2026-42129

Page: https://cve.now/GHSA-F74P-CWHP-X2WX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
