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

CVE-2026-104413: Ghost CMS Stored XSS Vulnerability

CVE-2026-104413 is a stored XSS flaw in Ghost CMS affecting versions 5.94.0 to 6.64.0 that lets staff users inject malicious HTML via bookmark cards. This post 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-104413 Overview

CVE-2026-104413 is a stored cross-site scripting ([CWE-79]) vulnerability affecting the Ghost publishing platform from version 5.94.0 before 6.64.0. The flaw resides in the bookmark card image fetching feature, which fails to validate the content type of files retrieved from external websites. Staff users, including low-privileged Contributors, can create bookmark cards that store arbitrary HTML files as card icons or thumbnails. When another staff user views the content in the admin interface, the attacker-controlled payload executes in their browser session.

Critical Impact

Low-privileged Contributors can compromise administrator sessions through stored HTML payloads, enabling account takeover and content manipulation across the Ghost instance.

Affected Products

  • Ghost 5.94.0 through versions prior to 6.64.0
  • Ghost self-hosted deployments using the bookmark card feature
  • Ghost(Pro) instances prior to the vendor patch

Discovery Timeline

  • 2026-10-02 - CVE-2026-104413 published to the National Vulnerability Database
  • 2026-10-02 - Last updated in NVD database

Technical Details for CVE-2026-104413

Vulnerability Analysis

Ghost's bookmark card component fetches remote resources to display preview icons and thumbnails alongside linked URLs. The fetching logic retrieves files referenced by the attacker-controlled bookmark URL and stores them within the Ghost instance for later rendering. The server-side handler does not enforce strict validation that the fetched asset is a legitimate image file.

An attacker with Contributor privileges can host an HTML document on an external server and reference it through a crafted bookmark card. Ghost stores this HTML file as the card's icon or thumbnail. When editors, authors, or administrators load the affected post or page in the admin UI, the browser interprets the stored HTML and executes any embedded JavaScript inside the authenticated admin origin.

The vulnerability allows session hijacking, exfiltration of admin credentials, and unauthorized actions executed in the context of higher-privileged accounts. Because the payload is stored, exploitation persists until the malicious card is manually removed.

Root Cause

The root cause is missing MIME type and content validation during bookmark card image ingestion. Ghost accepts the response body and file extension without verifying that the resource is an image, violating the principle of validating untrusted input before storage and rendering.

Attack Vector

Exploitation requires an authenticated staff account at Contributor level or above and victim interaction when another staff user opens the content. The attacker hosts a malicious HTML file on an attacker-controlled domain, creates a bookmark card pointing to a URL whose metadata references that file, and waits for a higher-privileged staff user to render the content in the admin interface.

See the GitHub Security Advisory GHSA-347q-26qq-h2p6 and the VulnCheck Advisory on Ghost XSS for additional technical context.

Detection Methods for CVE-2026-104413

Indicators of Compromise

  • Bookmark card icon or thumbnail files stored in Ghost's content directory with non-image MIME types such as text/html or application/xhtml+xml.
  • Outbound HTTP requests from the Ghost server to unfamiliar external domains triggered by bookmark card creation.
  • Unexpected administrative actions, API key generation, or new staff invitations originating from legitimate admin sessions.
  • Browser console errors or unexpected script execution when admin users load posts containing bookmark cards.

Detection Strategies

  • Audit the Ghost content storage directory for files served as bookmark card assets and verify their binary signatures match declared image types.
  • Review the posts, pages, and card payload tables for bookmark cards referencing external domains added after version 5.94.0 was deployed.
  • Correlate staff user activity logs with bookmark card creation events, focusing on Contributor-level accounts creating cards consumed by Editors or Administrators.

Monitoring Recommendations

  • Enable web server access logging and alert on admin session cookies accessed from unexpected IP addresses after bookmark card interactions.
  • Monitor Ghost admin API endpoints for anomalous POST requests creating or modifying bookmark cards from low-privileged accounts.
  • Deploy Content Security Policy (CSP) reporting to capture script execution attempts in the admin origin.

How to Mitigate CVE-2026-104413

Immediate Actions Required

  • Upgrade Ghost to version 6.64.0 or later, which validates fetched bookmark card assets as legitimate image content.
  • Review existing bookmark cards created by Contributor-level accounts and remove any referencing suspicious external domains.
  • Rotate admin session secrets and API keys if evidence of exploitation exists in logs.
  • Audit staff user accounts and revoke Contributor access for untrusted or dormant users.

Patch Information

The Ghost maintainers released a fix in version 6.64.0. Administrators running any release from 5.94.0 up to but not including 6.64.0 must upgrade. Refer to the GitHub Security Advisory GHSA-347q-26qq-h2p6 for release notes and upgrade instructions.

Workarounds

  • Restrict Contributor-level account creation to trusted individuals until the patch is applied.
  • Disable or restrict use of bookmark cards in editorial workflows where feasible.
  • Place Ghost admin behind an authenticating reverse proxy with strict Content Security Policy headers that block inline script execution.
  • Enforce egress filtering on the Ghost server to limit outbound fetches to trusted hosts.

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.