Skip to content
CVE PROGRAM SOURCE RECORD9.3 Critical

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

knowns-dev knowns

Default version status: unaffected

  • 0 to < 0.31.0affected
  • 0.31.0unaffected
pkg:npm/knowns

References