Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-88899 – Remote File Path Traversal / Sandbox Escape – knowns before v0.31.0

Be the first to know when new zero-days emerge:

Summary

CVE-2026-88899 is a critical external control of file path vulnerability (CWE-73) affecting the knowns npm package prior to version 0.31.0. The /api/opencode proxy endpoint fails to validate the x-opencode-directory request header, allowing unauthenticated remote attackers to redirect the embedded OpenCode agent’s file operations to arbitrary directories on the host filesystem. The issue is rated CRITICAL, with a CVSS v3.1 base score of 9.8 and a CVSS v4.0 base score of 9.3.

Technical details

  • Root cause: The proxyOpenCode() function in internal/server/server.go uses fail-open logic — it only substitutes the server’s safe activeRoot working directory when the client-supplied value is empty. If an attacker supplies a value, it is passed through unmodified to the underlying OpenCode daemon.
  • Trigger conditions: An attacker sends an HTTP request to the knowns server’s /api/opencode endpoint with a crafted x-opencode-directory header (or ?directory query parameter) pointing outside the intended project root (e.g., /root, /etc, ~/.ssh).
  • Attack vector: Network-based, requires no authentication and no user interaction; the vulnerable endpoint listens by default on port 4141.
  • Impact: The OpenCode agent initializes file operations at the attacker-specified path with the daemon’s OS-level privileges, enabling reading of sensitive files (SSH keys, credentials, .env files), writing malicious content (e.g., to shell profiles or cron jobs), and deletion/corruption of arbitrary files — resulting in full compromise of confidentiality, integrity, and availability.

Affected software

  • knowns (npm package, vendor: knowns-dev) — all versions prior to 0.31.0
  • Fixed in version 0.31.0, which removed the embedded OpenCode proxy entirely as part of a Chat UI removal

Severity

  • CVSS v3.1 Base Score: 9.8 (Critical)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • (A CVSS v4.0 score of 9.3, Critical, is also assigned: 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)

Mitigation and recommended actions

  • Immediate: Upgrade knowns to version 0.31.0 or later, where the embedded OpenCode proxy endpoint has been removed.
  • If immediate patching is not possible:
    • Restrict network access to the knowns server (default port 4141) to trusted hosts only, using firewall rules or network segmentation.
    • Do not expose the knowns server directly to the internet.
    • Monitor for HTTP requests to /api/opencode containing unexpected x-opencode-directory header values or directory query parameters referencing paths outside the intended project root.
    • No official patch exists for versions prior to 0.31.0 — upgrading is the only complete remediation.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge