Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-86775— knowns before 0.30.0 Path Traversal via Document API

Quick assessment

Affected
knowns-dev knowns
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

已知 npm 包 版本 ≤ 0.29.1 的文档 API 中存在路径遍历(path traversal)漏洞。 具体而言, 中的 HTTP 处理器使用 对用户提供的文档路径进行规范化处理。该函数会去除路径首尾的斜杠以及 后缀,但并未消除 遍历序列。随后, 使用 构建目标路径,但没有验证解析后的路径是否仍位于文档目录内部。 在默认部署配置中,管理 API(Management API)是无认证的,且绑定到所有网络接口。因此,远程未认证攻击者可以构造包含路径遍历的负载(例如向 发送 ,或向 发送编码后的路径),从而在宿

CVSS 8.6 · High

Affected Version Matrix 2

VendorProduct Version RangeStatus
knowns-dev knowns < 0.30.0 affected
0.30.0 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-86775

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
knowns before 0.30.0 Path Traversal via Document API
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
knowns-dev knowns 0 ~ 0.30.0 -

II. Public POCs for CVE-2026-86775

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-86775

登录查看更多情报信息。

Vendor Advisories for CVE-2026-86775 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-86775

No comments yet


Leave a comment