CVE-2026-88899
PoC nichePath Traversal in knowns /api/opencode Proxy Endpoint (CVE-2026-88899)
knowns versions before 0.31.0 contain a path traversal flaw (CWE-73, External Control of File Name or Path) in the /api/opencode proxy endpoint, which fails to validate the x-opencode-directory request header. An unauthenticated remote attacker can send a crafted header containing arbitrary directory paths, causing the endpoint to perform file operations outside the intended project root on the host system. Depending on the permissions of the service process, this can allow reading, writing, or otherwise manipulating files anywhere on the host, which the critical 9.3 CVSS 4.0 score reflects with high ratings for confidentiality, integrity, and availability impact. Anyone running an affected version of knowns with the opencode proxy endpoint reachable over the network is affected. There are currently no reports of in-the-wild exploitation, no known public proof-of-concept, and the issue is not in CISA's Known Exploited Vulnerabilities catalog.
What to do: Upgrade to knowns 0.31.0 or later, where the x-opencode-directory header is properly validated. If upgrading is not immediately possible, restrict network access to the /api/opencode endpoint (e.g., via reverse proxy rules), strip or validate the x-opencode-directory header, and run the service with least-privilege filesystem permissions. Administrators should also review host file integrity on exposed instances for signs of unexpected modifications.
| knowns (open-source project; CNA: VulnCheck) knowns | all versions before 0.31.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- Weakness
- CWE-73
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.