CVE-2026-88899 Details
Description
knowns versions before 0.31.0 fail to properly validate the x-opencode-directory request header in the /api/opencode proxy endpoint. Remote attackers can supply arbitrary directory paths to execute file operations outside the project root on the host system.
A vulnerability exists in Knowns versions prior to 0.31.0, where the OpenCode proxy endpoint fails to properly validate the 'x-opencode-directory' request header. This oversight allows remote attackers to specify arbitrary directory paths, enabling file operations outside the designated project root on the host system. The issue arises because the proxy only injects the project directory when the header is empty, allowing client-supplied values to pass through unmodified. As a result, an attacker can manipulate the OpenCode AI agent's working directory to access, modify, or execute files in sensitive locations, including system directories and credential stores.
Upgrade to Knowns version 0.31.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 10, 2026CISA-ADP
Assessed Sep 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-73 | External Control of File Name or Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| knowns | <= 0.30.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 11, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2026 | New CVE Received | [email protected] |
Volerion