Unauthenticated Path Traversal in knowns Template Preview
CVE-2026-86538 is a path traversal vulnerability in knowns versions before 0.30.0. The unauthenticated template preview API accepts attacker-controlled templateFile input, combines it with the template directory using filepath.Join(), and reads the resulting path using os.ReadFile() without adequately enforcing directory confinement. Directory-traversal sequences allow attackers to escape the intended template directory and obtain arbitrary file contents through the JSON response.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Remote unauthenticated attackers can disclose files readable by the knowns server process, including credentials and configuration files. The vulnerability directly affects confidentiality; no direct integrity or availability impact is established.
If you can’t patch tonight, do this now.
Until an upgrade is possible, disable the template preview endpoint or restrict access using authentication and network access controls. Reject directory-traversal input and enforce server-side path resolution that confines templateFile values to the intended template directory, using a safeguard such as safepath.Resolve.
Patch, then assume compromise.
Upgrade knowns to version 0.30.0 or later, which addresses the vulnerability.
No public exploits tracked yet. Mallory keeps watching.
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.