Skip to content

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

CriticalCVSS 9.3 EPSS 0.81%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
npm knowns < 0.31.0 0.31.0 Fixed

Affected products

ProductAffected versionsFixed in
npm knowns < 0.31.0 0.31.0

References