Skip to content
CVE PROGRAM SOURCE RECORD7.2 High

CVE-2026-86541

knowns before 0.30.0 Path Traversal via code.replace MCP action

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

knowns-dev knowns

Default version status: unaffected

  • 0 to < 0.30.0affected
  • 0.30.0unaffected
pkg:npm/knowns

References