# CVE-2026-42129: Path traversal in the Loki data source plugin

> A user with Viewer permissions can exploit path traversal in the Loki plugin to access administrative endpoints and read sensitive backend configuration.

- **Severity:** High 7.7 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 22 Jun 2026
- **Updated:** 27 Aug 2026
- **Also known as:** GHSA-f74p-cwhp-x2wx, GO-2026-6544, MINI-2285-5hvm-qmgh, MINI-2835-27mm-rg7p, MINI-35cj-mqqg-h6rq, MINI-7hpv-4f46-8crm, MINI-8g49-32pj-x475, MINI-8wgq-6c7f-g8gf, MINI-8x7g-h48h-6jg5, MINI-99p2-fgxq-96vp, MINI-cr3j-mfpg-x64r, MINI-ffgx-x932-f3vv, MINI-fvf4-42cf-c7p9, MINI-h4vg-xjqq-rhh2, MINI-m9gc-xv7x-7vjj, MINI-pc43-6f3v-xmvp, MINI-w3mx-frc9-vqfx, MINI-w74g-cpjj-q349, MINI-x2fw-mg2c-2h55

## What is CVE-2026-42129?

CVE-2026-42129 is a high-severity path traversal vulnerability in Grafana OSS, published on 22 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

A user with Viewer permissions can use a path traversal in the Loki data source plugin to reach administrative Loki endpoints and read sensitive backend configuration and internal service information.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-42129?

14 open source packages ship an affected version, including github.com/grafana/grafana. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/grafana/grafana` | Go | All versions | None |
| `github.com/grafana/grafana` | Go | All versions | 1.9.2-0.20260616075434-82ef13993059 |
| `github.com/grafana/grafana` | Go | All versions | 1.9.2-0.20260616075434-82ef13993059 |
| `github.com/grafana/grafana` | Go | From 12.0.0 | None |
| `github.com/grafana/grafana` | Go | From 12.0.0 | None |
| `github.com/grafana/grafana` | Go | From 12.3.0 | None |
| `github.com/grafana/grafana` | Go | From 12.3.0 | None |
| `github.com/grafana/grafana` | Go | From 12.4.0 | None |
| `github.com/grafana/grafana` | Go | From 12.4.0 | None |
| `github.com/grafana/grafana` | Go | From 13.0.0 | None |
| `github.com/grafana/grafana` | Go | From 13.0.0 | None |
| `github.com/grafana/grafana` | Go | From 2.0.0-beta1 | None |
| `github.com/grafana/grafana` | Go | From 2.0.0-beta1 | None |
| `github.com/grafana/grafana` | Go | From 2.0.0-beta1+incompatible | None |

Products: Grafana Loki Datasource.

## How do I fix CVE-2026-42129?

Upgrade github.com/grafana/grafana to 1.9.2-0.20260616075434-82ef13993059 or later.

## Is CVE-2026-42129 being exploited?

There is no known exploitation of CVE-2026-42129 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-42129 and fix it if it is affected.

What it is: CVE-2026-42129 is a high-severity path traversal vulnerability in Grafana OSS, published on 22 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-42129 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/grafana/grafana (Go): affected all versions; no fix listed
- github.com/grafana/grafana (Go): affected all versions; fixed in 1.9.2-0.20260616075434-82ef13993059
- github.com/grafana/grafana (Go): affected all versions; fixed in 1.9.2-0.20260616075434-82ef13993059
- github.com/grafana/grafana (Go): affected from 12.0.0; no fix listed
- github.com/grafana/grafana (Go): affected from 12.0.0; no fix listed
- github.com/grafana/grafana (Go): affected from 12.3.0; no fix listed
- github.com/grafana/grafana (Go): affected from 12.3.0; no fix listed
- github.com/grafana/grafana (Go): affected from 12.4.0; no fix listed
- github.com/grafana/grafana (Go): affected from 12.4.0; no fix listed
- github.com/grafana/grafana (Go): affected from 13.0.0; no fix listed
- github.com/grafana/grafana (Go): affected from 13.0.0; no fix listed
- github.com/grafana/grafana (Go): affected from 2.0.0-beta1; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-42129/ (Markdown: https://insights.sbomify.com/CVE-2026-42129/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-42129
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-42129
- OSV: https://osv.dev/vulnerability/CVE-2026-42129

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-42129/
Summaries are generated and may contain mistakes; the official description above is the record.
