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 27, 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
  • 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • 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 Sun, 08 Nov 2026 00:16:14 +0000.