CVE-2026-88899 PUBLISHED

knowns before 0.31.0 External Control of Agent Working Directory via x-opencode-directory Header

Assigner: VulnCheck
Reserved: 10.09.2026 Published: 10.09.2026 Updated: 10.09.2026

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.

Metrics

CVSS 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
CVSS Score: 9.3

Product Status

Vendor knowns-dev
Product knowns
Versions Default: unaffected
  • affected from 0 to 0.31.0 (excl.)
  • Version 0.31.0 is unaffected

Credits

  • Tong Hoang Gia finder

References

Problem Types

  • External Control of File Name or Path CWE