CVE-2024-23725 Cross-site Scripting in Ghost
Attackers can inject malicious scripts via post excerpts in Ghost CMS, potentially executing code in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-23725?
CVE-2024-23725 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 Jan 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Ghost before 5.76.0 allows XSS via a post excerpt in excerpt.js. An XSS payload can be rendered in post summaries.
Weakness: CWE-79
Which versions are affected by CVE-2024-23725?
3 open source packages ship an affected version, including ghost. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ghost Bitnami | All versions | 5.76.0 |
ghost npm | All versions | 5.76.0 |
ghost npm | All versions | 5.76.0 |
Products include Ghost Ghost.
How do I fix CVE-2024-23725?
Upgrade ghost to 5.76.0 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-2024-23725 being exploited?
There is no known exploitation of CVE-2024-23725 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as BIT-ghost-2024-23725, GHSA-fh38-9fgr-454w.