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

CVE-2026-105650: Ghost CMS XSS Vulnerability

CVE-2026-105650 is a cross-site scripting flaw in Ghost CMS that allows attackers to inject malicious scripts through embedded URLs. This post explains its impact, affected versions, and mitigation steps.

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

CVE-2026-105650 is a stored cross-site scripting (XSS) vulnerability in Ghost, a Node.js content management system. The flaw affects versions from 2.1.0 up to but not including 6.64.0. When a staff user embeds a URL from an attacker-controlled site, the oEmbed service accepts provider-supplied HTML and stores it in post content. The untrusted scripts can then execute in the Ghost editor, on the published site, and inside newsletter emails. Successful exploitation can compromise a staff user's admin session. The issue is tracked under [CWE-79] and is fixed in Ghost 6.64.0.

Critical Impact

Attacker-controlled oEmbed responses can inject stored scripts that run in admin, public, and email contexts, enabling staff session compromise.

Affected Products

  • Ghost (Node.js CMS) versions 2.1.0 through 6.63.x
  • Ghost admin editor rendering embedded content via srcdoc
  • Ghost public themes and newsletter email rendering via innerHTML

Discovery Timeline

  • 2026-10-05 - CVE-2026-105650 published to NVD
  • 2026-10-06 - Last updated in NVD database
  • Fixed in release - Ghost v6.64.0 published on GitHub (GitHub Release v6.64.0)

Technical Details for CVE-2026-105650

Vulnerability Analysis

Ghost's oEmbed service fetches metadata from third-party URLs that authors paste into the editor. Known providers such as YouTube and Twitter are routed through @extractus/oembed-extractor with an allowlist. Any other site reaching the fallback path is an arbitrary self-declared oEmbed endpoint. The service previously rejected video and rich responses because they carry provider HTML, but it accepted photo responses without the same treatment. An attacker hosting a malicious oEmbed endpoint can return a photo response containing script-bearing HTML that Ghost stores inside the post's Lexical payload.

Root Cause

The oEmbed handler in ghost/core/core/server/services/oembed/oembed-service.js only filtered out rich and video oEmbed types from untrusted providers. The photo type was omitted from the allowlist filter, even though its payload can also contain provider-supplied HTML that downstream renderers insert into the DOM. Lack of output sanitization at the render stage ([CWE-79]) means the stored HTML executes wherever the post is displayed.

Attack Vector

Exploitation requires an authenticated staff user to paste a URL under attacker control into the Ghost editor. The remote server advertises an oEmbed endpoint returning type: photo with malicious HTML. Ghost stores the response and later renders it via srcdoc in the admin preview and innerHTML in public themes and emails. The injected script executes with the privileges of any user viewing the content, including administrators, enabling session theft and account takeover.

javascript
// Patch: ghost/core/core/server/services/oembed/oembed-service.js
// Source: https://github.com/TryGhost/Ghost/commit/d23d552e257e2696c60293bc5cd7898a49d6bd1f

-        // `rich` and `video` responses ship provider-supplied HTML that gets
-        // stored in the post's Lexical payload and rendered into the admin
-        // editor preview (via srcdoc) and into public themes (via innerHTML).
-        if (oembed.type === 'video' || oembed.type === 'rich') {
+        // `rich`, `video` and `photo` responses can all ship provider-supplied
+        // HTML that gets stored in the post's Lexical payload and rendered
+        // into the admin editor preview (via srcdoc) and into public themes
+        // and emails (via innerHTML).
+        if (oembed.type === 'video' || oembed.type === 'rich' || oembed.type === 'photo') {
          return;
        }

The fix adds photo to the rejected types list so untrusted oEmbed responses fall back to a bookmark card instead of embedding arbitrary HTML.

Detection Methods for CVE-2026-105650

Indicators of Compromise

  • Outbound requests from the Ghost server to unknown domains following an editor /oembed API call
  • Post content records in the Ghost database containing <script> tags, onerror= handlers, or inline event attributes inside oEmbed payloads
  • Unexpected admin session activity or new staff users created shortly after a post with an external embed was saved

Detection Strategies

  • Audit Lexical post payloads for embed nodes whose html field contains scriptable markup or data URIs
  • Review web server access logs for POST /ghost/api/admin/oembed/ requests and correlate the target URL against domain reputation feeds
  • Monitor browser Content Security Policy (CSP) violation reports from both the admin editor and published site

Monitoring Recommendations

  • Alert on newly created or modified posts that include embeds from domains outside the known-provider allowlist
  • Track admin session cookies for reuse from unexpected IP addresses or user agents after embed-containing posts are saved
  • Enable Ghost audit logging for staff user changes, API key creation, and theme uploads

How to Mitigate CVE-2026-105650

Immediate Actions Required

  • Upgrade all Ghost instances to version 6.64.0 or later without delay
  • Review posts created or edited since the deployment of Ghost 2.1.0 for embeds sourced from untrusted domains and remove suspicious entries
  • Rotate staff user passwords and admin API keys if any suspicious embed content is found

Patch Information

The fix is included in Ghost 6.64.0, which extends the untrusted-provider rejection list to include photo oEmbed responses. Full details are available in the GitHub Security Advisory GHSA-v3xr-g6p2-fvgv, GitHub Pull Request #30763, and the GitHub Commit Update.

Workarounds

  • Restrict editor access to trusted staff users only until the upgrade is applied
  • Enforce a strict Content Security Policy on both the admin interface and public site to block inline scripts
  • Place Ghost behind a reverse proxy that blocks outbound oEmbed fetches to arbitrary external hosts
bash
# Upgrade Ghost to the patched release
ghost update --version 6.64.0

# Verify installed version
ghost version

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.