CVE-2026-24778 Ghost vulnerable to XSS via malicious Portal preview links
Attackers can execute JavaScript via malicious Portal preview links, leading to account takeover for authenticated users in Ghost CMS.
- 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-2026-24778?
CVE-2026-24778 is a high-severity cross-site scripting vulnerability in TryGhost Ghost, published on 27 Jan 2026. 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 is an open source content management system. In Ghost versions 5.43.0 through 5.12.04 and 6.0.0 through 6.14.0, an attacker was able to craft a malicious link that, when accessed by an authenticated staff user or member, would execute JavaScript with the victim's permissions, potentially leading to account takeover. Ghost Portal versions 2.29.1 through 2.51.4 and 2.52.0 through 2.57.0 were vulnerable to this issue. Ghost automatically loads the latest patch of the members Portal component via CDN. For Ghost 5.x users, upgrading to v5.121.0 or later fixes the vulnerability. v5.121.0 loads Portal v2.51.5, which contains the patch. For Ghost 6.x users, upgrading to v6.15.0 or later fixes the vulnerability. v6.15.0 loads Portal v2.57.1, which contains the patch. For Ghost installations using a customized or self-hosted version of Portal, it will be necessary to manually rebuild from or update to the latest patch version.
Weakness: CWE-79
Which versions are affected by CVE-2026-24778?
9 open source packages ship an affected version, including @tryghost/portal and ghost. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
@tryghost/portal npm | From 2.29.1 | 2.51.5 |
@tryghost/portal npm | From 2.29.1 | 2.51.5 |
@tryghost/portal npm | From 2.52.0 | 2.57.1 |
@tryghost/portal npm | From 2.52.0 | 2.57.1 |
ghost Bitnami | From 5.43.0 | 5.121.0, 6.15.0 |
ghost npm | From 5.43.0 | 5.121.0 |
3 more packages
ghost npm | From 5.43.0 | 5.121.0 |
ghost npm | From 6.0.0 | 6.15.0 |
ghost npm | From 6.0.0 | 6.15.0 |
Products include Ghost Ghost, Ghost Portal.
How do I fix CVE-2026-24778?
Upgrade @tryghost/portal to a fixed version for your release line: 2.51.5 or 2.57.1.
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-2026-24778 being exploited?
There is no known exploitation of CVE-2026-24778 in the wild and no public exploit code.
Other vulnerabilities in TryGhost Ghost
Sources
Also known as BIT-ghost-2026-24778, GHSA-gv6q-2m97-882h.