/

CVE-2026-105677

Severity:

HIGH RISK

(7.2)

Code Injection (CWE-94) in Ghost Theme Translation Loading

CVE-2026-105677

Deferred

Vulnerability type

Category:

Code Injection

CWE:

CWE-22, CWE-94, CWE-829

Impact:

Server-Side Arbitrary Code Execution

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Ghost contains a code injection vulnerability in the way theme translation files are loaded, allowing an authenticated Administrator to execute arbitrary code on the server through a specially crafted theme. The risk arises when an attacker with administrative access can upload or activate a theme that reaches the vulnerable translation-loading behavior.

Ghost contains a code injection vulnerability in the way theme translation files are loaded, allowing an authenticated Administrator to execute arbitrary code on the server through a specially crafted theme. The risk arises when an attacker with administrative access can upload or activate a theme that reaches the vulnerable translation-loading behavior.

Affected context

The vulnerability affects Ghost deployments that load theme translation files through the vulnerable processing path. Exploitation generally requires an authenticated account with Administrator privileges and the ability to introduce or manage a crafted theme; deployments with restricted theme management may have a narrower exposure.

The vulnerability affects Ghost deployments that load theme translation files through the vulnerable processing path. Exploitation generally requires an authenticated account with Administrator privileges and the ability to introduce or manage a crafted theme; deployments with restricted theme management may have a narrower exposure.

Exploit preconditions

  • Attack surface: Ghost theme management and translation-file loading - Required access: An authenticated Ghost Administrator account - Trigger point: Processing translation files associated with a crafted theme - Why exploitation is possible: Theme-controlled input reaches a code-loading

or execution-sensitive path without sufficiently restricting its behavior

  • Attack surface: Ghost theme management and translation-file loading - Required access: An authenticated Ghost Administrator account - Trigger point: Processing translation files associated with a crafted theme - Why exploitation is possible: Theme-controlled input reaches a code-loading

or execution-sensitive path without sufficiently restricting its behavior

Why this happens

The underlying issue is the unsafe handling of theme translation data as it is loaded by Ghost. Instead of treating translation files strictly as passive data, the vulnerable processing path permits crafted theme content to influence executable behavior. This maps primarily to CWE-94, Code Injection, with CWE-22 potentially reflecting unsafe file-path handling and CWE-829 reflecting reliance on externally controlled code or resources.

The underlying issue is the unsafe handling of theme translation data as it is loaded by Ghost. Instead of treating translation files strictly as passive data, the vulnerable processing path permits crafted theme content to influence executable behavior. This maps primarily to CWE-94, Code Injection, with CWE-22 potentially reflecting unsafe file-path handling and CWE-829 reflecting reliance on externally controlled code or resources.

Potential impact

  • An attacker may execute arbitrary code with the privileges of the Ghost server process.
  • The attacker could access or modify application content and configuration.
  • Server credentials, tokens, or other sensitive data could be exposed.
  • The compromised host could be used for persistence, lateral movement, or additional attacks.
  • An attacker may execute arbitrary code with the privileges of the Ghost server process.
  • The attacker could access or modify application content and configuration.
  • Server credentials, tokens, or other sensitive data could be exposed.
  • The compromised host could be used for persistence, lateral movement, or additional attacks.

General mitigation guidance

Mitigation generally focuses on ensuring that translation files remain data-only resources and cannot influence code execution. Secure-by-default designs use strict, format-aware parsers, fixed resource locations, and allowlisted theme contents rather than dynamically loading executable behavior. Theme uploads and activation can be constrained through trusted sources, integrity checks, administrative separation, and controlled deployment workflows. Running Ghost with least privilege, limiting file system and network permissions, and isolating content-management services can reduce impact if a malicious theme is introduced.

Mitigation generally focuses on ensuring that translation files remain data-only resources and cannot influence code execution. Secure-by-default designs use strict, format-aware parsers, fixed resource locations, and allowlisted theme contents rather than dynamically loading executable behavior. Theme uploads and activation can be constrained through trusted sources, integrity checks, administrative separation, and controlled deployment workflows. Running Ghost with least privilege, limiting file system and network permissions, and isolating content-management services can reduce impact if a malicious theme is introduced.

How teams detect issues like this

Detection can include static analysis for dynamic module loading, evaluation, unsafe file-path construction, and translation parsers that process executable constructs. Code reviews should examine theme upload, activation, extraction, and localization flows for trust-boundary violations and missing allowlists. Runtime monitoring can alert on unexpected theme changes, child-process creation, unusual outbound connections, or server-side file modifications. CI and repository policies can require provenance and integrity validation for themes and can use automated security review tools to flag risky loading patterns.

Detection can include static analysis for dynamic module loading, evaluation, unsafe file-path construction, and translation parsers that process executable constructs. Code reviews should examine theme upload, activation, extraction, and localization flows for trust-boundary violations and missing allowlists. Runtime monitoring can alert on unexpected theme changes, child-process creation, unusual outbound connections, or server-side file modifications. CI and repository policies can require provenance and integrity validation for themes and can use automated security review tools to flag risky loading patterns.

Sources

SourceLink
github.comgithub.com/TryGhost/Ghost/commit/d2f498694be549074dd5817fd0e8a1371b65df02
github.comgithub.com/TryGhost/Ghost/issues/30635
github.comgithub.com/TryGhost/Ghost/releases/tag/v6.64.0
github.comgithub.com/TryGhost/Ghost/security/advisories/GHSA-jj74-hc2q-xrvm

Frequently asked

questions

Exploitation generally requires an authenticated Ghost Administrator who can

upload, manage, or activate a crafted theme.

No. The described attack requires privileged authenticated access to the

Ghost administration and theme-management functionality.

Treat theme translation files strictly as untrusted data, use restricted

parsers and allowlisted resource paths, and prevent theme content from

reaching executable code-loading paths.

Enforce theme provenance and integrity checks, review upload and activation

workflows, apply least privilege, and monitor for unexpected theme changes

or server-side process activity.

Exploitation generally requires an authenticated Ghost Administrator who can

upload, manage, or activate a crafted theme.

No. The described attack requires privileged authenticated access to the

Ghost administration and theme-management functionality.

Treat theme translation files strictly as untrusted data, use restricted

parsers and allowlisted resource paths, and prevent theme content from

reaching executable code-loading paths.

Enforce theme provenance and integrity checks, review upload and activation

workflows, apply least privilege, and monitor for unexpected theme changes

or server-side process activity.

Find out what's already
exploitable in your codebase.