What’s Vulnerable › Vulnerabilities

CVE-2026-88899: knowns before 0.31.0 External Control of Agent Working Directory via x-opencode-directory Header

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.

Affected products

How to fix

Upgrade to a fixed version: knowns-dev knowns 0.31.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-88899 or the next vulnerability affects your stack