GHSA-w47m-jpv2-qfw5: Duplicate Advisory: Knowns Sandbox Escape: Unauthenticated Header Injection Grants AI Agent Unrestricted Access to Host Filesystem
This advisory was withdrawn on Sep 25, 2026. The publisher no longer considers it a valid vulnerability.
Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-9h2q-r9fh-f98w. This link is maintained to preserve external references. Original Description knowns versions before 0.31.0 fail to properly validate the x-opencode-directory request header in the /api/opencode proxy endpoint.
Published Sep 10, 2026 · Updated Sep 25, 2026
Affected packages
knowns
- Ecosystem
- npm
- Affected
- < 0.31.0
- Fixed in
- No patched version yet
- Check
npm ls knowns
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-9h2q-r9fh-f98w. This link is maintained to preserve external references.
Original 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.
Credited to uziii2208.
References
- https://github.com/knowns-dev/knowns/security/advisories/GHSA-9h2q-r9fh-f98w
- https://nvd.nist.gov/vuln/detail/CVE-2026-88899
- https://github.com/knowns-dev/knowns/commit/37db0561b37b48b8bd035a417d7f1da6258ae657
- https://github.com/knowns-dev/knowns/blob/v0.30.0/internal/server/server.go#L1283-L1296
- https://github.com/knowns-dev/knowns/releases/tag/v0.31.0
- https://www.vulncheck.com/advisories/knowns-before-0.31.0-external-control-of-agent-working-directory-via-x-opencode-directory-header
- https://github.com/advisories/GHSA-w47m-jpv2-qfw5
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
