CVE-2026-88899
published critical CVSS 4.0 · 9.3knowns before 0.31.0 External Control of Agent Working Directory via x-opencode-directory Header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| knowns-dev | — | knowns0 to < 0.31.0 (affected · semver) · 0.31.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| knowns-dev | knowns | 0 to < 0.31.0 (affected · semver)0.31.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-73 External Control of File Name or Path
References
5- https://github.com/knowns-dev/knowns/blob/v0.30.0/internal/server/server.go#L1283-L1296
- https://github.com/knowns-dev/knowns/commit/37db0561b37b48b8bd035a417d7f1da6258ae657
- knowns v0.31.0 Release Notes https://github.com/knowns-dev/knowns/releases/tag/v0.31.0
- GitHub Security Advisory (GHSA-9h2q-r9fh-f98w) https://github.com/knowns-dev/knowns/security/advisories/GHSA-9h2q-r9fh-f98w
- VulnCheck Advisory: knowns before 0.31.0 External Control of Agent Working Directory via x-opencode-directory Header https://www.vulncheck.com/advisories/knowns-before-0.31.0-external-control-of-agent-working-directory-via-x-opencode-directory-header
Provider assertions
2VulnCheck · cna
knowns before 0.31.0 External Control of Agent Working Directory via x-opencode-directory Header
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 091748e83b2d73e0408ab3b0d37c5ee4b68a9fe043140edd0da8dc5624cf1fbe
- Ingested
- 23 Sep 2026, 09:37:53 UTC
- Source record
- Official CVE record