Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108722 Overview
CVE-2026-108722 is a stored cross-site scripting (XSS) vulnerability in the open-computer-use project maintained by e2b-dev. The flaw exists through commit 610bac8 and affects the Logger.write_log_file function in os_computer_use/logging.py. The logger writes transcript text directly into log.html without HTML escaping. Attackers who control sandbox content, such as web pages or files surfaced through run_command output, can inject script payloads. The payload executes when an operator opens the log file in a browser, enabling exfiltration of transcript contents. The weakness is categorized under CWE-79.
Critical Impact
Attacker-controlled sandbox output is written unescaped into an HTML session log, enabling script execution and transcript exfiltration when operators view the log.
Affected Products
- e2b-dev open-computer-use through commit 610bac8
- os_computer_use/logging.py (Logger.write_log_file)
- Generated log.html session transcript files
Discovery Timeline
- 2026-10-11 - CVE-2026-108722 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-108722
Vulnerability Analysis
The open-computer-use project generates an HTML transcript of agent activity for operator review. The Logger.write_log_file routine in os_computer_use/logging.py concatenates transcript entries into log.html without applying HTML entity escaping. Transcript entries include text harvested from sandbox context, including browser pages visited and output from run_command invocations inside the sandbox. Attacker-controlled strings therefore reach the DOM as live markup rather than inert text.
When an operator opens the log in a browser, injected <script> tags or event handlers execute in the file origin. The attacker can read and exfiltrate the rendered transcript, which may contain sensitive prompts, credentials, tokens, or internal state captured during the agent session. This is a persistent, stored XSS condition because the payload is durably written to disk inside the log artifact.
Root Cause
The root cause is missing output encoding at an HTML sink [CWE-79]. Logger.write_log_file treats untrusted sandbox-sourced text as safe HTML content. No sanitization, templating with autoescape, or entity encoding is applied before writing to log.html.
Attack Vector
An attacker places a payload where it will be ingested by the agent transcript, for example by serving a web page containing a script tag, or by producing run_command output that includes HTML markup. The malicious content flows through the agent pipeline documented in sandbox_agent.py and is written verbatim by logging.py. Execution requires an operator to subsequently open the log file.
No verified public exploit code is published for CVE-2026-108722. For technical write-ups, see the HackMD CVE-2026-108722 analysis and the Vulncheck advisory.
Detection Methods for CVE-2026-108722
Indicators of Compromise
- Presence of <script>, <img onerror=...>, or javascript: URI fragments inside generated log.html files produced by open-computer-use.
- Transcript entries containing raw HTML tags originating from sandboxed browser pages or run_command output.
- Outbound network connections initiated from the operator workstation shortly after opening a log.html file.
Detection Strategies
- Scan session log directories with pattern matching for HTML tags and inline event handlers inside transcript values.
- Hash and compare log templates against known-good baselines to detect injected markup.
- Review browser process telemetry on operator hosts for file:// origins loading log.html followed by anomalous network requests.
Monitoring Recommendations
- Monitor file writes to the open-computer-use log output directory and flag entries containing angle-bracket markup.
- Correlate agent sandbox browsing activity with log-file content changes to identify untrusted source pages that reached the transcript.
- Alert on operator workstations rendering log.html artifacts outside sandboxed viewers.
How to Mitigate CVE-2026-108722
Immediate Actions Required
- Treat all existing log.html artifacts produced by vulnerable commits as untrusted and do not open them in a privileged browser session.
- Patch Logger.write_log_file in os_computer_use/logging.py to HTML-escape all transcript fields before writing.
- Restrict access to generated session logs to prevent lateral exposure of injected payloads.
Patch Information
At the time of publication, no fixed release is referenced in the NVD entry. Users of the e2b-dev/open-computer-use repository should track the project for a commit that applies HTML escaping to transcript writes and upgrade past commit 610bac8.
Workarounds
- Apply a local patch that wraps transcript strings with an HTML-escaping function (for example html.escape) inside Logger.write_log_file before concatenation into log.html.
- Render logs through a template engine with autoescape enabled instead of raw string concatenation.
- Open generated logs only in an isolated, non-privileged browser profile with scripting disabled for file:// origins.
- Limit the agent's sandbox browsing surface to trusted domains to reduce attacker-controlled content reaching the transcript.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

