# CVE-2026-86541: knowns before 0.30.0 Path Traversal via code.replace MCP action

- Severity: High 7.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-09-07T23:03:19.358Z
- Modified: 2026-09-24T14:21:25.013Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- knowns-dev knowns: before 0.30.0 (not affected: 0.30.0)

## Every score

- VulnCheck: CVSS:4.0 7.2 High `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`
- VulnCheck: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H`

## References

- <https://github.com/knowns-dev/knowns/security/advisories/GHSA-f539-xgc6-xw7q> (vendor-advisory)
- <https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/mcp/handlers/code.go#L588-L646> (technical-description)
- <https://github.com/knowns-dev/knowns/commit/a2c98fc5c313463576c9348beeec6a74ddd7333b> (patch)
- <https://github.com/knowns-dev/knowns/releases/tag/v0.30.0> (release-notes)
- <https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-code-replace-mcp-action> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-86541](https://www.cve.org/CVERecord?id=CVE-2026-86541), CVE Terms of Use, modified 2026-09-24
- NVD: [CVE-2026-86541](https://nvd.nist.gov/vuln/detail/CVE-2026-86541), Public domain, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-86541 · Whole record: https://cve.day/CVE-2026-86541.json · Rebuilt by cve.day 2026-11-25T22:59:36.562Z
