Vulnerabilities in pkg:golang/github.com/openziti/zrok

PACKAGE
Advisory Identifier: GHSA-c656-jcx2-7pqj
Advisory Summary

CVE-2026-45576 is a HIGH zrok copy writes attacker-controlled webdav vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Github.com/openziti/zrok/v2 libraries in the Go ecosystem. The issue involves zrok copy writes attacker-controlled webdav paths outside the destination root. Remediation is available by upgrading affected packages to version 2.0.3.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/openziti/zrok

5 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/openziti/zrok. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-c656-jcx2-7pqj CVE-2026-45576 HIGH zrok copy writes attacker-controlled WebDAV paths outside the destination root
GHSA-74m3-9qvm-rp9h CVE-2026-42275 HIGH zrok: WebDAV drive backend follows symlinks outside DriveRoot, enabling host filesystem read/write
GHSA-3jpj-v3xr-5h6g CVE-2026-40304 MODERATE zrok: Broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records
GHSA-cpf9-ph2j-ccr9 CVE-2026-40303 HIGH zrok: Unauthenticated DoS via unbounded memory allocation in striped session cookie parsing
GHSA-4fxq-2x3x-6xqx CVE-2026-40302 MODERATE zrok: Reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering

CVE-2026-45576 at a Glance

CVE Identifier CVE-2026-45576
GHSA Identifier GHSA-c656-jcx2-7pqj
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Github.com/openziti/zrok/v2
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-45576

To remediate this vulnerability, upgrade all affected Github.com/openziti/zrok/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/openziti/zrok/v2 fixed: 2.0.3
Upgrade github.com/openziti/zrok/v2 to 2.0.3
github.com/openziti/zrok fixed: Latest secure release
Upgrade github.com/openziti/zrok to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/openziti/zrok/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-45576, inspect your project dependencies for Github.com/openziti/zrok/v2:

inspect dependencies for github.com/openziti/zrok/v2

Analyze the terminal output to locate any version of Github.com/openziti/zrok/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Github.com/openziti/zrok/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary Alice runs `zrok2 copy` from a WebDAV or zrok drive controlled by Bob into a local filesystem target. Bob returns a DAV `href` such as `/../outside.txt`. The sync pipeline stores that path in the source inventory and passes it to `FilesystemTarget.WriteStream`, which joins it with the target root and creates the file outside Alice's selected directory. ### Impact Users given access to a zrok share may be able to traverse the directory tree arbitrarily with the sharing users credentials, allowing for sensitive information to be overwritten.

CVE-2026-45576 Affected Github.com/openziti/zrok/v2 Versions

2 component(s)
Fixed Versions:
2.0.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openziti/zrok/v2
Go
< 2.0.3
2.0.3
github.com/openziti/zrok
Go
≥ 0.4.23
≤ 1.1.11

References

Frequently Asked Questions

What is CVE-2026-45576?
CVE-2026-45576 is a security vulnerability in Github.com/openziti/zrok/v2 involving zrok copy writes attacker-controlled WebDAV paths outside the destination root under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Github.com/openziti/zrok/v2 versions are affected?
Affected versions include releases prior to 2.0.3 across affected packages: github.com/openziti/zrok/v2, github.com/openziti/zrok.
What version fixes CVE-2026-45576?
Upgrading to 2.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openziti/zrok/v2 affected?
Yes, github.com/openziti/zrok/v2 is affected in releases prior to 2.0.3. Upgrade your dependency to 2.0.3 or later.
Is github.com/openziti/zrok affected?
Yes, github.com/openziti/zrok is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2026-45576?
CVE-2026-45576 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Go dependencies for CVE-2026-45576?
Run the dependency tree command: 'inspect dependencies for github.com/openziti/zrok/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c656-jcx2-7pqj",
  "modified" : "2026-05-19T15:38:57Z",
  "published" : "2026-05-19T15:38:56Z",
  "aliases" : [ "CVE-2026-45576" ],
  "summary" : "zrok copy writes attacker-controlled WebDAV paths outside the destination root",
  "details" : "## Summary\n\nAlice runs `zrok2 copy` from a WebDAV or zrok drive controlled by Bob into a local filesystem target. Bob returns a DAV `href` such as `/../outside.txt`. The sync pipeline stores that path in the source inventory and passes it to `FilesystemTarget.WriteStream`, which joins it with the target root and creates the file outside Alice's selected directory.\n\n### Impact\nUsers given access to a zrok share may be able to traverse the directory tree arbitrarily with the sharing users credentials, allowing for sensitive information to be overwritten.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openziti/zrok/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openziti/zrok"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.4.23"
      }, {
        "last_affected" : "1.1.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openziti/zrok/security/advisories/GHSA-c656-jcx2-7pqj"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openziti/zrok"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-19T15:38:56Z",
    "nvd_published_at" : null
  }
}