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

Published Sep 10, 2026
·
Updated

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 Software

1 affected component
knowns<0.31.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OpenCode Agent to a version that resolves this vulnerability.

    Fixed in 0.31.0
  2. Compensating control

    Restrict access to the /api/opencode proxy endpoint so only trusted clients can send the x-opencode-directory header (mitigate arbitrary directory path file operations outside the project root for versions known before 0.31.0).

Event History

Sep 10, 2026
CVE Published
via MITRE·03:28 PM
Data Sourced
via MITRE·03:28 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments require remediation?

knowns versions earlier than 0.31.0 are affected. Upgrade to version 0.31.0 or later.

2

Does an attacker need credentials or user interaction to exploit this issue?

No. The CVSS vector indicates no privileges are required and no user interaction is needed; exploitation is network-accessible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203