CVE Catalog

CVE-2026-86775

HighCVSS 8.6
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.49%

40th percentile - higher than 40% of all known CVEs

Summary

The npm package "knowns" versions <= 0.29.1 contain a path traversal vulnerability in the Document API. The cleanDocPath() function does not neutralize ../ sequences, and doc_store.go builds the target path without verifying it stays inside the documents directory. In the default deployment (unauthenticated Management API bound to all interfaces), a remote unauthenticated attacker can read, create, overwrite, or delete arbitrary .md files and create directories on the host. The issue is fixed in version 0.30.0.

Risk Assessment

An attacker can expose sensitive data from other projects' documentation, corrupt or destroy files, and leverage an arbitrary-write primitive toward code execution. The risk is critical because exploitation requires no authentication.

Recommendation

Immediately upgrade the "knowns" package to version 0.30.0 or later. Restrict access to the Management API through authentication and bind it only to trusted interfaces.

Other vulnerabilities in knowns

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS