CVE-2026-86775
knowns before 0.30.0 Path Traversal via Document API
Mitigation
- Upgrade knowns to 0.30.0 or later.
Who should check
- Anyone running knowns-dev knowns < 0.30.0
Vulnerability facts
- Affected
- knowns-dev knowns < 0.30.0
- Fixed in
- knowns-dev knowns 0.30.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.8 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.75% chance of exploitation in 30 days (percentile 51, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| knowns-dev knowns | < 0.30.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-86775. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-86775.md Affected: knowns-dev knowns < 0.30.0 Fixed in: knowns-dev knowns 0.30.0 Steps: 1. Search this machine and project for knowns-dev knowns: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-86775 being exploited?
There is no confirmed exploitation: CVE-2026-86775 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.75% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-86775?
High: CVSS 8.8 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-86775?
knowns-dev knowns < 0.30.0.
Is there a fix for CVE-2026-86775?
Yes. Fixed in knowns-dev knowns 0.30.0. Upgrade knowns to 0.30.0 or later.
How do I check if I'm affected by CVE-2026-86775?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.