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

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-09-10T15:28:51.729Z
- Modified: 2026-09-11T21:17:55.460Z
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- knowns-dev knowns: before 0.31.0 (not affected: 0.31.0)

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `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`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/knowns-dev/knowns/security/advisories/GHSA-9h2q-r9fh-f98w> (vendor-advisory)
- <https://github.com/knowns-dev/knowns/blob/v0.30.0/internal/server/server.go#L1283-L1296> (technical-description)
- <https://github.com/knowns-dev/knowns/commit/37db0561b37b48b8bd035a417d7f1da6258ae657> (patch)
- <https://github.com/knowns-dev/knowns/releases/tag/v0.31.0> (release-notes)
- <https://www.vulncheck.com/advisories/knowns-before-0.31.0-external-control-of-agent-working-directory-via-x-opencode-directory-header> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-88899](https://www.cve.org/CVERecord?id=CVE-2026-88899), CVE Terms of Use, modified 2026-09-11
- NVD: [CVE-2026-88899](https://nvd.nist.gov/vuln/detail/CVE-2026-88899), Public domain, modified 2026-09-11

---

Page: https://cve.day/CVE-2026-88899 · Whole record: https://cve.day/CVE-2026-88899.json · Rebuilt by cve.day 2026-11-25T22:59:37.872Z
