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

CVE-2026-104414: Ghost CMS Stored XSS Vulnerability

CVE-2026-104414 is a stored XSS flaw in Ghost CMS affecting versions 2.5.0 to 6.64.0 that lets attackers inject malicious scripts through oEmbed photo responses. This article covers technical details, affected versions, impact, 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-104414 Overview

CVE-2026-104414 is a stored cross-site scripting (XSS) vulnerability [CWE-79] in Ghost, the open-source publishing platform maintained by TryGhost. The flaw affects Ghost versions from 2.5.0 before 6.64.0 and arises from unsafe handling of oEmbed photo responses. Attackers host a malicious oEmbed photo endpoint, then trick an editor into embedding its URL. Ghost stores the attacker-supplied payload, which later executes inside the Ghost editor, the published site, and outbound newsletter emails. The vulnerability enables theft of staff administrator sessions and compromise of published content.

Critical Impact

Successful exploitation stores attacker-controlled JavaScript that executes in authenticated admin contexts, enabling session hijacking and tenant-wide content tampering.

Affected Products

  • Ghost versions 2.5.0 through versions prior to 6.64.0
  • Ghost editor, published front-end site, and newsletter email delivery pipeline
  • Any staff administrator session interacting with embedded oEmbed content

Discovery Timeline

  • 2026-10-02 - CVE-2026-104414 published to NVD
  • 2026-10-02 - Last updated in NVD database

Technical Details for CVE-2026-104414

Vulnerability Analysis

Ghost supports oEmbed, a protocol that lets authors paste a URL and receive structured embed data from the remote provider. The platform fetches an oEmbed response of type photo and inserts fields from that response into post content. The affected versions fail to sanitize script-bearing fields in the photo response before persisting them. The injected markup is stored in the post record and rendered everywhere that content is displayed.

The stored payload executes in three distinct contexts. In the Ghost editor, scripts run under the staff administrator session, exposing authenticated API tokens and cookies. On the published site, scripts run against site visitors. In newsletter emails, the payload is delivered to subscribers through an email channel, broadening the attack surface beyond the browser.

Root Cause

The root cause is improper neutralization of input during web page generation [CWE-79]. Ghost treats fields returned by the remote oEmbed provider as trusted structured data and skips HTML encoding before writing them into post content and email templates. Because the provider URL is attacker-controlled, the response body is attacker-controlled.

Attack Vector

An attacker stands up a web endpoint that returns a valid oEmbed JSON response of type photo containing a crafted payload. The attacker shares the embed URL with a Ghost editor through social engineering, a submission form, or a public link. When a user with publish privileges pastes the URL into the editor, Ghost fetches the oEmbed document and stores the payload. The script subsequently runs for every viewer of the editor, the public post, and the email newsletter.

The CVSS 4.0 vector indicates network reachability with no privileges required, but passive user interaction is required because an editor must choose to embed the malicious URL.

No verified public proof-of-concept code is available. See the GitHub Security Advisory GHSA-v3xr-g6p2-fvgv and the VulnCheck Advisory on XSS for additional technical context.

Detection Methods for CVE-2026-104414

Indicators of Compromise

  • Unexpected <script> tags, inline event handlers, or javascript: URIs embedded in stored post content fetched from the Ghost database.
  • Outbound HTTP requests from the Ghost server to unfamiliar domains during oEmbed URL resolution.
  • Admin session cookies or API tokens observed in outbound traffic to third-party hosts shortly after an editor embedded an external URL.
  • Newsletter emails containing script fragments, suspicious iframes, or references to unknown external hosts.

Detection Strategies

  • Query the Ghost posts and posts_meta tables for substrings such as <script, onerror=, onload=, and javascript: in oEmbed card payloads.
  • Review web server access logs for POSTs to the Ghost admin oEmbed resolution endpoint followed by requests to attacker-controlled URLs.
  • Inspect Content Security Policy (CSP) violation reports for unexpected script-src sources tied to post rendering.

Monitoring Recommendations

  • Centralize Ghost application logs, admin API logs, and reverse-proxy logs into a SIEM for correlation of embed activity with outbound requests.
  • Alert on changes to published posts and newsletter templates performed outside of expected editor workflows.
  • Monitor staff session token issuance and reuse from unexpected IP addresses after suspected embed events.

How to Mitigate CVE-2026-104414

Immediate Actions Required

  • Upgrade Ghost to version 6.64.0 or later on all self-hosted instances; Ghost(Pro) tenants are patched by the vendor.
  • Audit recent posts, pages, and newsletter sends for suspicious embed cards and revert or delete affected content.
  • Rotate staff administrator credentials, API keys, and integration tokens that may have been exposed to the Ghost editor during the exposure window.
  • Review and revoke active admin sessions to invalidate potentially stolen cookies.

Patch Information

TryGhost fixed the vulnerability in Ghost 6.64.0. The fix is documented in the GitHub Security Advisory GHSA-v3xr-g6p2-fvgv. Self-hosted operators should follow the standard Ghost CLI upgrade procedure and verify the running version with ghost --version after deployment.

Workarounds

  • Restrict outbound network access from the Ghost server so the oEmbed resolver cannot reach untrusted endpoints until the patch is applied.
  • Enforce a strict Content Security Policy on the published site and admin interface that blocks inline scripts and limits script-src to known hosts.
  • Limit staff accounts with Editor and Author roles to trusted users, and require review before publishing posts containing embedded media.
  • Disable or proxy the oEmbed feature through an allowlist of approved providers if feasible in your deployment.

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.