Skip to main content
Vulnerability Database/CVE-2026-109558

CVE-2026-109558: EdgeEver Stored XSS Vulnerability

CVE-2026-109558 is a stored XSS vulnerability in EdgeEver versions 1.6.0 through 1.112.0 that allows attackers to execute malicious scripts via unsanitized template content. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published:

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-109558 Overview

CVE-2026-109558 is a stored cross-site scripting (XSS) vulnerability in EdgeEver versions 1.6.0 through 1.112.0. The flaw resides in TemplatesPane.tsx, which renders template contentMarkdown as raw HTML through React's dangerouslySetInnerHTML without sanitization. An attacker who can write templates through the API or an MCP token can embed HTML event handlers that execute script when a user previews the template. Executed script runs in the renderer and can reach the privileged window.edgeeverDesktop bridge, exposing desktop-level functionality to attacker-controlled JavaScript. The weakness is tracked under [CWE-79].

Critical Impact

Stored script executed in the EdgeEver renderer can call the privileged window.edgeeverDesktop bridge, extending browser-context XSS into desktop-level operations.

Affected Products

  • EdgeEver 1.6.0 through 1.112.0
  • EdgeEver desktop renderer exposing window.edgeeverDesktop
  • EdgeEver API and MCP token-authenticated template writers

Discovery Timeline

  • 2026-10-12 - CVE-2026-109558 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-109558

Vulnerability Analysis

The EdgeEver web application stores user-defined templates containing a contentMarkdown field. The template preview component in apps/web/src/components/TemplatesPane.tsx passes that field directly to React's dangerouslySetInnerHTML property. Because the markdown is injected as raw HTML without sanitization, any attribute-level script, such as an onerror or onload handler, executes within the renderer context when a user previews the template.

The EdgeEver desktop build exposes a privileged bridge object at window.edgeeverDesktop. Script running from a template preview inherits that origin and can invoke bridge methods intended for trusted renderer code. The result is that content writable through the public API or an MCP token transitions from stored data to desktop-reachable code execution surface.

Root Cause

The root cause is unsafe rendering of untrusted content. The template contentMarkdown payload is treated as trusted HTML in TemplatesPane.tsx at the referenced source lines, with no HTML sanitizer or allow-list filter between storage and the DOM. Combined with a broad renderer-to-main IPC bridge, the omission turns a classic persistent XSS into a boundary bypass.

Attack Vector

An authenticated attacker, including one holding only an MCP token, creates or updates a template with a contentMarkdown value containing an HTML tag with an event handler, for example an <img> tag with an onerror payload. When any user, including the attacker in a self-hosted scenario or another user with template access, opens the preview, the script executes and can call methods on window.edgeeverDesktop.

The upstream commit 6b5027e hardens multiple execution boundaries. The patches below from that commit tighten ACP executable validation and outbound AI provider requests, two surfaces reachable from the renderer bridge that this XSS could abuse.

javascript
// Patch: apps/desktop/src/main/acp-path-store.mjs
import { mkdir, readFile, realpath, rename, stat, writeFile } from "node:fs/promises";
import path from "node:path";

export const validateTrustedAcpPath = async (filename, { excludedRoot } = {}) => {
  const selected = await realpath(filename);
  if (excludedRoot) {
    const root = await realpath(excludedRoot);
    const child = path.relative(root, selected);
    if (!child || (child !== ".." && !child.startsWith(`..${path.sep}`) && !path.isAbsolute(child))) {
      throw new Error("Choose an ACP executable outside EdgeEver's client data directory");
    }
  }
  const info = await stat(selected);
  if (!info.isFile()) throw new Error("The ACP executable must be a file");
  if (process.platform !== "win32") {
    if (info.mode & 0o022) throw new Error("The ACP executable must not be writable by other users");
    for (let directory = path.dirname(selected);; directory = path.dirname(directory)) {
      if ((await stat(directory)).mode & 0o022) throw new Error("The ACP executable directory must not be writable by other users");
      if (path.dirname(directory) === directory) break;
    }
  }
  return selected;
};

Source: GitHub Commit #6b5027e

javascript
// Patch: apps/desktop/src/main/ai-direct.mjs
import { nodePublicFetch } from "@edgeever/public-network/node";
import { validatePublicUrl } from "@edgeever/public-network/policy";

export const validateAiProviderUrl = (value) => {
  const url = validatePublicUrl(value);
  if (url.protocol !== "https:" || url.username || url.password || url.hash) {
    throw new Error("AI provider requests must use HTTPS without credentials.");
  }
  if (url.port && url.port !== "443") throw new Error("AI provider requests must use port 443.");
  return url;
};

Source: GitHub Commit #6b5027e

Detection Methods for CVE-2026-109558

Indicators of Compromise

  • Templates whose contentMarkdown field contains HTML tags or event-handler attributes such as onerror, onload, onclick, or <script>.
  • API or MCP-token requests that create or update templates with payloads containing angle brackets and on*= substrings.
  • Unexpected calls into window.edgeeverDesktop bridge methods originating from template preview views.

Detection Strategies

  • Scan the template datastore for stored contentMarkdown values that fail an HTML allow-list check.
  • Instrument the renderer bridge to log and alert on window.edgeeverDesktop invocations occurring during the template preview route.
  • Review API and MCP audit logs for template write operations from tokens that do not normally author templates.

Monitoring Recommendations

  • Capture renderer console errors and content-security-policy violations from EdgeEver desktop clients into a central log pipeline.
  • Track outbound requests from the desktop main process to AI provider URLs for unexpected hosts or non-HTTPS schemes.
  • Alert on filesystem writes under EdgeEver client data directories that are later referenced as ACP executables.

How to Mitigate CVE-2026-109558

Immediate Actions Required

  • Upgrade EdgeEver to a release containing commit 6b5027e8b4becbee0c0de7cd1a3d04af78ca87ca or later, which hardens renderer and desktop execution boundaries.
  • Revoke and rotate MCP tokens and API keys that have template-write scope until the upgrade is complete.
  • Audit existing templates and remove or sanitize any contentMarkdown entries containing HTML markup or event handlers.

Patch Information

The upstream fix is published in commit 6b5027e of the edgeever repository. Related tracking is in GitHub Issue #533 and GitHub Issue #546, with advisory text in the VulnCheck Security Advisory for edgeever. Review the vulnerable sink at TemplatesPane.tsx lines 150-158.

Workarounds

  • Restrict template write permissions on the API and MCP token roles to trusted operators only.
  • Deploy a reverse-proxy or application-level filter that rejects template payloads containing HTML tags in contentMarkdown.
  • Disable the template preview feature for shared or multi-tenant deployments until the patched build is installed.
bash
# Verify the installed EdgeEver build contains the hardening commit
cd /path/to/edgeever
git log --oneline | grep 6b5027e
# Expected output includes: 6b5027e fix(security): harden renderer and desktop execution boundaries

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.