CVE-2024-23725 Cross-site Scripting in Ghost

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
ghost BitnamiAll versions5.76.0
ghost npmAll versions5.76.0
ghost npmAll versions5.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.

Sources

Also known as BIT-ghost-2024-23725, GHSA-fh38-9fgr-454w.

Is CVE-2024-23725 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free