CVE-2026-105649

Ghost: Stored XSS via SVG Uploads Bypassing Sanitization

Published Oct 5, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
Ghost is a Node.js content management system. From 4.22.0 until 6.65.0, SVG media thumbnails and SVG images uploaded with a non-SVG file extension were stored without sanitization. This allowed any staff user, including Contributors, to host scripts on the site's domain, possibly resulting in compromise of other staff users' admin sessions. This issue is fixed in version 6.65.0.

Analysis

AI-generated

Technical impact

Ghost, a Node.js CMS, contains a stored cross‑site scripting flaw in media handling. From version 4.22.0 through 6.65.0, SVG thumbnails and images uploaded with a non‑SVG file extension were saved without sanitization. A staff user, including those with Contributor privileges, can upload such a file containing malicious JavaScript that runs in the browser of any other staff member who views the media, enabling the attacker to hijack administrator sessions and potentially execute commands on the server. The vulnerability is a classic example of insecure file upload (CWE‑434) combined with reflected XSS (CWE‑79).

Affected Systems

The affected product is Ghost, the content management system from TryGhost. Vulnerable versions span from 4.22.0 up to, but not including, 6.65.0. Any deployment of Ghost within that range that permits staff uploads of SVG files with non‑SVG extensions is susceptible.

Risk and Exploitability

The CVSS score is 7.3, indicating high severity. The exploit probability score (EPSS) is not available, but the absence of a KEV listing suggests there is no confirmed exploitation yet. Attackers would need a staff user account with permission to upload media and would place a crafted SVG containing JavaScript into the upload. Because the vulnerability allows code to execute within the context of other staff members' browsers, it has the potential to lead to compromise of administrative accounts and lateral movement. The flaw remains unpatched until the customer upgrades to Ghost 6.65.0 or newer, which includes the necessary sanitization.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Ghost to version 6.65.0 or newer to apply the vendor‑provided fix.
  • If an immediate upgrade is not feasible, block or restrict staff uploads of SVG files that do not have a proper SVG extension until the patch is applied.
  • Monitor media upload logs for anomalous SVG files and enforce strict MIME type checks to prevent malicious content from being stored.

Generated by OpenCVE AI on October 5, 2026 at 20:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8575-cr6v-7jh4 Ghost: Stored XSS via SVG Uploads Bypassing Sanitization
History
Type Values Removed Values Added
First Time appeared Ghost
Ghost ghost
Vendors & Products Ghost
Ghost ghost
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Ghost is a Node.js content management system. From 4.22.0 until 6.65.0, SVG media thumbnails and SVG images uploaded with a non-SVG file extension were stored without sanitization. This allowed any staff user, including Contributors, to host scripts on the site's domain, possibly resulting in compromise of other staff users' admin sessions. This issue is fixed in version 6.65.0.
Title Ghost: Stored XSS via SVG Uploads Bypassing Sanitization
Weaknesses CWE-434
CWE-79
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 6, 2026, 2:51 PM
Reserved
Oct 5, 2026, 4:40 PM
Status
Deferred
Published
Oct 5, 2026, 8:17 PM
Modified
Oct 6, 2026, 3:17 PM