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-104411 Overview
CVE-2026-104411 is a stored cross-site scripting [CWE-79] vulnerability in Ghost, the open-source publishing platform. The flaw affects Ghost versions from 6.22.1 up to but not including 6.64.0. The default local storage adapter serves uploaded files with content types derived from their file extensions. Staff users can upload script-bearing files that execute in the context of the Ghost site's domain. Attackers abuse this to compromise other staff users' admin sessions.
Critical Impact
Authenticated staff users can upload files containing scripts that execute on the Ghost domain, enabling session theft and takeover of other administrator accounts.
Affected Products
- Ghost versions 6.22.1 through 6.63.x
- Ghost deployments using the default local storage adapter
- Ghost instances with multiple staff users or administrators
Discovery Timeline
- 2026-10-02 - CVE-2026-104411 published to NVD
- 2026-10-02 - Last updated in NVD database
Technical Details for CVE-2026-104411
Vulnerability Analysis
Ghost's default local storage adapter accepts file uploads from authenticated staff users and serves them back using an HTTP Content-Type header derived from the file extension. The adapter does not restrict extensions that can carry executable browser content. An attacker with a staff account uploads a file bearing a script-executing extension such as .html or .svg. The file is hosted on the same origin as the Ghost admin interface. When another staff user visits the uploaded file, the browser executes the embedded script within the Ghost site's origin.
Because the payload runs same-origin with the admin panel, it can read session cookies, call authenticated admin API endpoints, and persist control by creating new owner-level users or API keys.
Root Cause
The root cause is improper restriction of file types and content types on uploads handled by the local storage adapter. The adapter maps extensions directly to Content-Type values without enforcing an allowlist of inert media types. There is no Content-Disposition: attachment enforcement, no sandboxing via a separate origin, and no Content Security Policy sufficient to block inline script execution for user-controlled files.
Attack Vector
Exploitation requires an authenticated staff account and user interaction from a victim staff user. The attacker uploads a crafted file containing JavaScript, then shares the resulting same-origin URL with another staff user through editorial comments, direct links, or embedded references in content. When the victim loads the URL, the script runs with access to the admin session. The attacker captures cookies, issues admin API requests, or escalates to the site owner role.
No code example is reproduced here. See the GitHub Security Advisory and the VulnCheck Advisory for Ghost XSS for technical specifics.
Detection Methods for CVE-2026-104411
Indicators of Compromise
- Files with extensions such as .html, .htm, .svg, .xml, or .xhtml present under the Ghost content/files/ upload directory.
- Admin API requests originating from unexpected user agents or IP addresses shortly after a staff user accessed an uploaded file URL.
- Creation of new staff or owner accounts, API keys, or integrations not initiated by administrators.
- Outbound HTTP requests from staff browsers to attacker-controlled domains following access to uploaded content.
Detection Strategies
- Inventory the Ghost content upload directory and alert on any file whose extension can carry executable browser content.
- Review web server access logs for GET requests to /content/files/ paths that return text/html, image/svg+xml, or application/xhtml+xml.
- Correlate upload events in Ghost's activity log with subsequent authenticated admin API calls from the same session.
Monitoring Recommendations
- Enable auditing on staff account changes, integration creation, and API key issuance within Ghost.
- Forward Ghost application logs and reverse-proxy access logs to a centralized SIEM for correlation.
- Alert on anomalous session reuse where an admin session token is observed from multiple IP addresses within a short window.
How to Mitigate CVE-2026-104411
Immediate Actions Required
- Upgrade Ghost to version 6.64.0 or later without delay.
- Audit the content/files/ directory for existing uploads with script-capable extensions and remove any that are not required.
- Rotate all staff session cookies, admin API keys, and integration tokens after patching.
- Review the staff user list and remove unknown or dormant accounts.
Patch Information
The Ghost maintainers fixed the vulnerability in version 6.64.0. Deployments running any version from 6.22.1 through 6.63.x on the default local storage adapter must upgrade. Refer to the GitHub Security Advisory GHSA-gfjp-2p8f-94qv for the fix commit and release notes.
Workarounds
- Place uploaded content behind a reverse proxy that forces Content-Disposition: attachment and overrides Content-Type to application/octet-stream for files under /content/files/.
- Serve uploaded files from a separate domain or subdomain that is not shared with the Ghost admin interface, isolating script execution from admin session cookies.
- Restrict staff account creation to trusted users and require multi-factor authentication for all staff logins until the upgrade is complete.
# Nginx example: force downloads for Ghost local-storage files
location /content/files/ {
add_header Content-Disposition "attachment" always;
add_header X-Content-Type-Options "nosniff" always;
types { } default_type application/octet-stream;
}
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

