knowns before 0.30.0 Path Traversal via Document API
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · High · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
knowns (npm package) versions <= 0.29.1 contain a path traversal vulnerability in the Document API. The HTTP handler in internal/server/routes/docs.go normalizes the user-supplied document path with cleanDocPath(), which strips leading/trailing slashes and the .md suffix but does not neutralize ../ traversal sequences, and internal/storage/doc_store.go then builds the target path with filepath.Join(ds.docsDir(), filepath.FromSlash(doc.Path)+".md") without verifying that the resolved path remains inside the documents directory. In the default deployment, where the Management API is unauthenticated and bound to all interfaces, a remote unauthenticated attacker can supply a traversal payload (for example {"path": "../../../../tmp/knowns_pwn_marker"} to POST /api/docs, or an encoded path to GET /api/docs/...) to read, create, overwrite, or delete arbitrary files with a .md extension anywhere on the host filesystem and to create arbitrary directories via os.MkdirAll. This can expose sensitive data stored in other projects' documentation, corrupt or destroy files, and provide an arbitrary-write primitive that may be chained toward code execution. The issue is fixed in version 0.30.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| knowns-dev | knowns | before 0.30.0 | 0.30.0 | Patch available | CNA |
- knowns Vendorknowns-dev Affected before 0.30.0 Fixed in 0.30.0 Patch available CNA
Remediation
- Fix · CNA knowns (knowns-dev) Fixed in 0.30.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-86775
- 2026-10-03 Alias added: GHSA-h5q7-w9w4-9hcf
References
More knowns-dev vulnerabilities
- TI-2026-60300 knowns through 0.33.0 Authorization Bypass via project.set Bootstrap Exemption CVSS 4.0HIGH 8.7
- TI-2026-60298 knowns through 0.33.0 Path Traversal via Template Engine CVSS 4.0HIGH 8.6
- TI-2026-59217 knowns before 0.30.0 Arbitrary Code Execution via LSP Binary CVSS 4.0HIGH 8.5
- TI-2026-60301 knowns through 0.33.0 Arbitrary Directory Enumeration via workspace browse endpoint CVSS 4.0MEDIUM 6.9
- TI-2026-60299 knowns through 0.33.0 Path Traversal via code.find MCP tool CVSS 4.0HIGH 7.1
- TI-2026-60283 knowns before 0.31.0 External Control of Agent Working Directory via x-opencode-directory Header CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-86775 · CVE Program
- CVE-2026-86775 · NVD
- FIRST EPSS
- GHSA-h5q7-w9w4-9hcf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences