CVE-2026-88899
knowns versions before 0.31.0 fail to properly validate the …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/knowns-dev/knowns/blob/v0.30.0/internal/server/server.go#L1283-L1296
- github.com/knowns-dev/knowns/commit/37db0561b37b48b8bd035a417d7f1da6258ae657
- github.com/knowns-dev/knowns/releases/tag/v0.31.0
- github.com/knowns-dev/knowns/security/advisories/GHSA-9h2q-r9fh-f98w
- www.vulncheck.com/advisories/knowns-before-0.31.0-external-control-of-agent-working-direct
- nvd.nist.gov/vuln/detail/CVE-2026-88899
- cve.org/CVERecord?id=CVE-2026-88899
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.