Skip to main content

CVE-2026-24778 — Vulnerability in @tryghost/portal — CVE Details

HIGH

Ghost vulnerable to XSS via malicious Portal preview links

Published January 28, 2026Updated February 3, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.44%). Schedule for your next planned update.

Does your project use an affected @tryghost/portal version?

Paste your package-lock.json to check it for CVE-2026-24778 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

Impact

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.

Vulnerable versions

This vulnerability is present in Ghost versions:

  • v5.43.0 to v5.120.4
  • v6.0.0 to v6.14.0

As well as in Portal versions:

  • v2.29.1 to v2.51.4
  • v2.52.0 to v2.57.0

Patches

Ghost automatically loads the latest patch of the members Portal component via CDN. Therefore:

  • For Ghost 5.x users, upgrading to v5.121.0 or later fixes the vulnerability (loads Portal v2.51.5, which contains the patch)
  • For Ghost 6.x users, upgrading to v6.15.0 or later fixes the vulnerability (loads Portal v2.57.1, which contains the patch)

For Ghost installations using a customised or self-hosted version of Portal, it will be necessary to manually rebuild from or update to the latest patch version.

References

Ghost thanks Younes Belalia for discovering and disclosing this vulnerability responsibly.

For more information

If users have any questions or comments about this advisory, email Ghost at security@ghost.org.

Advisory Timeline

  • First published January 28, 2026 (302 days ago).
  • Last revised February 3, 2026 — 6 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @tryghost/portal to 2.51.5 or later
npm install @tryghost/portal@2.51.5
npm
Update @tryghost/portal to 2.57.1 or later
npm install @tryghost/portal@2.57.1
npm
Update ghost to 6.15.0 or later
npm install ghost@6.15.0
npm
Update ghost to 5.121.0 or later
npm install ghost@5.121.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: npm (2).

PackageFixed In
@tryghost/portal npm · Affected: All versions2.51.5
@tryghost/portal npm · Affected: All versions2.57.1
ghost npm · Affected: All versions6.15.0
ghost npm · Affected: All versions5.121.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-24778?
Ghost vulnerable to XSS via malicious Portal preview links. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-24778?
CVE-2026-24778 affects @tryghost/portal and ghost. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-24778 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.44%
EPSS percentile: 30.1

This is a below-median EPSS score — only 30.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-gv6q-2m97-882h
BIT-ghost-2026-24778

Related CVEs

  • CVE-2026-53943
    CRITICAL

    Ghost: Cache-poisoning XSS in Ghost frontend via x-ghost-preview header

  • CVE-2026-26980
    CRITICAL

    Ghost has a SQL injection in Content API

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-105642
    HIGH

    Ghost: Remote Code Execution via Bookmark Card Images

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json