CVE-2026-88938
Received Received - Intake

Path Traversal in CodeCompanion MCP Tool

Vulnerability report for CVE-2026-88938, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-10

Last updated on: 2026-09-10

Assigner: VulnCheck

Description

knowns through 0.33.0 fails to confine the path argument of the code.find MCP tool to the project root, allowing AI agent sessions to read source files anywhere on the host. Attackers can supply absolute paths or relative traversal sequences to the path argument and retrieve full file contents from outside the intended project directory.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-10
Last Modified
2026-09-10
Generated
2026-09-10
AI Q&A
2026-09-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
knowns-dev knowns to 0.33.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-88938 is a path traversal vulnerability in the knowns software up to version 0.33.0. It affects the code.find MCP tool, which fails to restrict file path arguments to the project root directory. Attackers can supply absolute paths or relative traversal sequences (like ../) to read arbitrary files on the host system outside the intended directory.

Detection Guidance

To detect this vulnerability, inspect the knowns package version installed on your system. Check if it is version 0.33.0 or below. Review logs for MCP tool calls to the code.find handler with suspicious path arguments like absolute paths or sequences containing ../. Monitor file access patterns outside the project directory.

Impact Analysis

This vulnerability allows attackers to read sensitive files on your system, including source code, credentials, API keys, and database connection strings. It requires low privileges and no user interaction to exploit. Attackers can access files with recognized source extensions like .go, .ts, or .js, potentially leading to data breaches or further system compromise.

Compliance Impact

This vulnerability could lead to violations of GDPR and HIPAA due to unauthorized access to sensitive data. GDPR requires protection of personal data, while HIPAA mandates safeguards for protected health information. A breach could result in legal penalties, reputational damage, and loss of compliance certifications.

Mitigation Strategies

Immediately upgrade the knowns package to a version that patches this vulnerability. If upgrading is not possible, disable the code.find MCP tool or restrict its access to the project root directory. Implement strict input validation for all path arguments in MCP tool handlers.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-88938. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart