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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm knowns | < 0.31.0 | 0.31.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm knowns | < 0.31.0 | 0.31.0 |
References
- GitHub Security Advisory (GHSA-9h2q-r9fh-f98w) vendor-advisory
- github.com technical-description
- github.com patch
- knowns v0.31.0 Release Notes release-notes
- VulnCheck Advisory: knowns before 0.31.0 External Control of Agent Working Directory via x-opencode-directory Header third-party-advisory
- ENISA EUVD EUVD-2026-75579 third-party-advisory