Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/grafana/loki/v3
  4. ›
  5. CVE-2026-21726

CVE-2026-21726: Grafana Loki Path Traversal - CVE-2021-36156 Bypass

April 15, 2026 (updated April 16, 2026)

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

  • github.com/advisories/GHSA-497x-rrr9-68jp
  • github.com/grafana/loki
  • grafana.com/security/security-advisories/cve-2026-21726
  • nvd.nist.gov/vuln/detail/CVE-2026-21726

Code Behaviors & Features

Detect and mitigate CVE-2026-21726 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.6.4

Fixed versions

  • 3.6.4

Solution

Upgrade to version 3.6.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

go/github.com/grafana/loki/v3/CVE-2026-21726.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:50 +0000.