CVE-2026-86541
highknowns versions before 0.30.0 contain a path traversal vulnerability in the handleCodeReplace() function that allows attackers to overwrite arbitrary files out…
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/mcp/handlers/code.go#L588-L646 disclosure@vulncheck.com
- https://github.com/knowns-dev/knowns/commit/a2c98fc5c313463576c9348beeec6a74ddd7333b disclosure@vulncheck.com
- https://github.com/knowns-dev/knowns/releases/tag/v0.30.0 disclosure@vulncheck.com
- https://github.com/knowns-dev/knowns/security/advisories/GHSA-f539-xgc6-xw7q disclosure@vulncheck.com
- https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-code-replace-... disclosure@vulncheck.com
