CVE-2026-86541 PUBLISHED

knowns before 0.30.0 Path Traversal via code.replace MCP action

Assigner: VulnCheck
Reserved: 07.09.2026 Published: 07.09.2026 Updated: 07.09.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 7.2

Product Status

Vendor knowns-dev
Product knowns
Versions Default: unaffected
  • affected from 0 to 0.30.0 (excl.)
  • Version 0.30.0 is unaffected

Credits

  • Tong Hoang Gia reporter
  • Nguyen Huy Hoang reporter

References

Problem Types

  • Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE