CVE-2022-47196
NixOS vulnerability analysis and mitigation

Overview

An insecure default vulnerability (CVE-2022-47196) was discovered in Ghost Foundation Ghost 5.9.4's Post Creation functionality. The vulnerability allows non-administrator users to inject arbitrary Javascript in posts through the codeinjection_head field, potentially leading to privilege escalation to administrator via XSS. This vulnerability can be triggered when an attacker sends an HTTP request to inject Javascript in a post and tricks an administrator into visiting the post (Talos).

Technical details

The vulnerability is classified as an Insecure Default Variable Initialization (CWE-453) and Cross-site Scripting (CWE-79) issue. It received a CVSS v3.1 base score of 5.4 (MEDIUM) from NVD and 9.0 (CRITICAL) from Talos, with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The vulnerability specifically exists in the codeinjection_head field for posts, where insufficient input validation allows for JavaScript injection (NVD).

Impact

When exploited, this vulnerability allows attackers with basic user privileges to potentially escalate their privileges to administrator level through XSS attacks. In default installations of Ghost CMS, this effectively means that users who can author pages have the same privileges as administrators (Talos).

Exploitability

The vulnerability requires an attacker to have a user account with post creation privileges and a target administrator to visit a malicious post while logged in. The exploit can be triggered when a higher-level user previews or visits any post by the malicious user (Talos).

Mitigation and workarounds

To mitigate this vulnerability, administrators can separate the admin domain as documented in Ghost's configuration guide. This prevents the vulnerability from being exploited to perform privileged API calls, such as modifying user groups or adding users (Talos).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util-bdb
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management