{"id":"CVE-2026-86541","published":"2026-09-07T23:03:19Z","modified":"2026-09-24T14:21:25Z","title":"knowns before 0.30.0 Path Traversal via code.replace MCP action","vendor":"knowns-dev","product":"knowns","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00768,"percentile":0.51903,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/knowns-dev/knowns/security/advisories/GHSA-f539-xgc6-xw7q","tags":["vendor-advisory"]},{"url":"https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/mcp/handlers/code.go#L588-L646","tags":["technical-description"]},{"url":"https://github.com/knowns-dev/knowns/commit/a2c98fc5c313463576c9348beeec6a74ddd7333b","tags":["patch"]},{"url":"https://github.com/knowns-dev/knowns/releases/tag/v0.30.0","tags":["release-notes"]},{"url":"https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-code-replace-mcp-action","tags":["third-party-advisory"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.38},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"knowns-dev","affectedVersions":[{"vendor":"knowns-dev","product":"knowns","versions":["< 0.30.0"]}],"fixedVersions":[{"vendor":"knowns-dev","product":"knowns","versions":["0.30.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-09-10T14:27:48.486769Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-72559","exploited":false,"provenance":"source"}}