CVE-2026-21726: Grafana Loki Path Traversal - CVE-2021-36156 Bypass
The CVE-2021-36156 fix validates the namespace parameter for path traversal sequences after a single URL decode, by double encoding, an attacker can read files at the Ruler API endpoint /loki/api/v1/rules/{namespace} Thanks to Prasanth Sundararajan for reporting this vulnerability.
Published Apr 15, 2026 · Updated Apr 27, 2026
Affected packages
github.com/grafana/loki/v3
- Ecosystem
- Go
- Affected
- < 3.6.4
- Fixed in
- 3.6.4
- Check
go list -m github.com/grafana/loki/v3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The CVE-2021-36156 fix validates the namespace parameter for path traversal sequences after a single URL decode, by double encoding, an attacker can read files at the Ruler API endpoint /loki/api/v1/rules/{namespace}
Thanks to Prasanth Sundararajan for reporting this vulnerability.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
