CVE-2022-47196 Cross-site scripting in Ghost
Stored XSS in Ghost allows non-admins to inject JavaScript, leading to privilege escalation to administrator when an admin views the post.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-47196?
CVE-2022-47196 is a critical cross-site scripting vulnerability in Ghost, published on 19 Jan 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
An insecure default vulnerability exists in the Post Creation functionality of Ghost Foundation Ghost 5.9.4. Default installations of Ghost allow non-administrator users to inject arbitrary Javascript in posts, which allow privilege escalation to administrator via XSS. To trigger this vulnerability, an attacker can send an HTTP request to inject Javascript in a post to trick an administrator into visiting the post.A stored XSS vulnerability exists in the `codeinjection_head` for a post.
Which versions are affected by CVE-2022-47196?
1 open source package ship an affected version, including ghost. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ghost Bitnami | From 5.9.4 | 5.9.5 |
Products include Ghost Ghost.
How do I fix CVE-2022-47196?
Upgrade ghost to 5.9.5 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-47196 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-47196 exists.
Other vulnerabilities in Ghost
Sources
Also known as BIT-ghost-2022-47196, GHSA-vx4r-h2xh-2c27.