CVE-2026-86775: knowns - Path Traversal
- Cve: CVE-2026-86775
- Name: knowns - Path Traversal
- Description: 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.
- Impact: Remote unauthenticated attackers can read, write, or delete arbitrary files, potentially exposing sensitive data or enabling code execution.
- Remediation: Update to version 0.30.0 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read, file_system_write, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
- Epss score: 0.00747
- Epss percentile: 0.55588
- Assignee: [email protected]
- Published at: 2026-09-09T14:17:28Z
- Age in days: 76
- Modified at: 2026-09-14T14:17:17Z
- References total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-86775
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/knowns-dev/knowns/security/advisories/GHSA-3h35-4jq7-hv45 | nvd | |
| https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-document-api | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| knowns-dev/knowns | security_advisory | yes | /v1/repositories/knowns-dev/knowns |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts