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

Read the record on cve.org

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

CVSSScoreVectorSource
4.07.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.18.3 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:HVulnCheck

Weaknesses

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

Affected Products

ProductVersions
knownsknowns-dev
  • before 0.30.0Affected
  • 0.30.0Not affected

References

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.