CVE-2026-86541
knowns before 0.30.0 Path Traversal via code.replace MCP action
- State
- Published
- Severity
- 7.2 High
- Published
- Sep 7, 2026
- Updated
- Sep 24, 2026
- Reserved
- Sep 7, 2026
Description
knowns versions before 0.30.0 contain a path traversal vulnerability in the handleCodeReplace() function that allows attackers to overwrite arbitrary files outside the project root. Attackers can supply absolute paths or relative paths containing directory traversal sequences to write malicious content to sensitive files like shell startup scripts or SSH configuration files.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.2 High | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 8.3 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
knownsknowns-dev |
|
References
- GitHub Security Advisory (GHSA-f539-xgc6-xw7q)vendor-advisory
- handleCodeReplace resolves and writes the caller-supplied path without containment (v0.29.1)technical-description
- knowns fix commit a2c98fc5c313patch
- knowns v0.30.0 Release Notesrelease-notes
- VulnCheck Advisory: knowns before 0.30.0 Path Traversal via code.replace MCP actionthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.