A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-23724

CVE-2024-23724: Ghost CMS Stored XSS Vulnerability

CVE-2024-23724 is a stored XSS vulnerability in Ghost CMS allowing contributors to escalate privileges via malicious SVG profile pictures. This article covers the technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2024-23724 Overview

CVE-2024-23724 affects Ghost publishing platform versions through 5.76.0. The flaw allows stored cross-site scripting (XSS) through Scalable Vector Graphics (SVG) profile picture uploads. A contributor-level account can upload an SVG containing JavaScript that executes in the context of any user viewing the profile image. The embedded script interacts with the Ghost API on localhost TCP port 3001, enabling account takeover and privilege escalation. The vendor stated they do not view this as a valid attack vector, and the issue is tracked in the Rhino Security Labs CVE repository and a Ghost pull request.

Critical Impact

A low-privileged contributor can escalate to administrator by uploading a malicious SVG that hijacks higher-privileged sessions via the local Ghost API.

Affected Products

  • Ghost (Node.js) versions through 5.76.0
  • Self-hosted Ghost deployments exposing the admin interface
  • Multi-author Ghost instances that grant contributor accounts upload capability

Discovery Timeline

  • 2024-02-11 - CVE-2024-23724 published to the National Vulnerability Database (NVD)
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-23724

Vulnerability Analysis

The vulnerability is a stored Cross-Site Scripting (XSS) issue [CWE-79] in Ghost's profile picture upload functionality. Ghost accepts SVG files as profile images without sanitizing embedded scripts. SVG is an XML-based image format that can contain <script> elements and event handlers. When another user, including an administrator, loads a page rendering the malicious SVG, the embedded JavaScript executes within their browser session.

The attacker chains the XSS with the Ghost Admin API, which listens on 127.0.0.1:3001 in default development and many production configurations. The injected JavaScript issues authenticated requests against this API using the victim's session, performing actions such as password reset, role assignment, or new owner creation.

A contributor is the lowest-privileged authenticated role in Ghost. Successful exploitation pivots that minimal access into full ownership of the Ghost instance.

Root Cause

The upload handler permits the image/svg+xml content type for profile pictures and stores the file without stripping active content. Ghost then serves the SVG inline rather than forcing a download or rendering it as a rasterized image, allowing the browser to execute the script element.

Attack Vector

An authenticated contributor crafts an SVG that embeds JavaScript performing fetch requests against http://localhost:3001/ghost/api/admin/. The contributor sets this SVG as their profile picture. When an editor or administrator views any page displaying the contributor's avatar, the script runs with the victim's cookies and CSRF token, then issues API calls to create a new owner account or change credentials.

Technical details and proof-of-concept material are published in the Rhino Security Labs CVE-2024-23724 repository. The patch is tracked in Ghost pull request #19646.

Detection Methods for CVE-2024-23724

Indicators of Compromise

  • Profile picture files with .svg extension or image/svg+xml MIME type in the Ghost content/images/ directory
  • SVG files containing <script>, onload, onerror, or xlink:href="javascript:" attributes
  • Unexpected new staff accounts with owner or administrator roles in the Ghost users table
  • Outbound or loopback HTTP requests to 127.0.0.1:3001/ghost/api/admin/ originating from admin browser sessions

Detection Strategies

  • Scan stored profile images for SVG content and inspect for embedded scripting constructs
  • Audit the Ghost users and roles_users tables for role changes performed by contributor accounts
  • Review Ghost access logs for admin API calls correlated with rendering of a contributor profile page
  • Alert on creation of staff accounts immediately following a contributor's profile picture update

Monitoring Recommendations

  • Forward Ghost application logs and reverse proxy access logs to a centralized logging platform
  • Monitor for HTTP requests to administrative API endpoints that originate from referrers containing contributor profile URLs
  • Track file uploads by MIME type and flag any SVG uploads to the avatar endpoint

How to Mitigate CVE-2024-23724

Immediate Actions Required

  • Upgrade Ghost to a version that includes the fix from pull request #19646
  • Audit existing profile pictures and remove any SVG files until patched
  • Review staff accounts and revoke unexpected administrator or owner roles
  • Restrict contributor signups and require manual approval for new authors

Patch Information

The fix is delivered in Ghost pull request #19646, which addresses SVG handling on profile picture uploads. Administrators running Ghost 5.76.0 or earlier should upgrade to a release containing this commit. Self-hosted operators using ghost-cli can apply the update with ghost update.

Workarounds

  • Configure the upload handler or reverse proxy to reject image/svg+xml content types on the profile picture endpoint
  • Serve user-uploaded images with Content-Disposition: attachment to prevent inline script execution
  • Apply a strict Content Security Policy (CSP) on Ghost admin pages that disallows inline script execution from uploaded content
  • Bind the Ghost Admin API to a non-loopback interface protected by authentication-aware network controls
bash
# Nginx configuration example to block SVG profile uploads
location ~* /ghost/api/.*/images/upload {
    if ($request_method = POST) {
        if ($http_content_type ~* "image/svg\+xml") {
            return 415;
        }
    }
    proxy_pass http://127.0.0.1:2368;
}

# Force attachment disposition on served SVG assets
location ~* \.svg$ {
    add_header Content-Disposition "attachment";
    add_header Content-Security-Policy "default-src 'none'; script-src 'none'";
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechGhost

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability38.38%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-79
  • Technical References
  • Rhino Security Labs Blog
  • Vendor Resources
  • GitHub PoC Repository

  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-24778: Ghost CMS XSS Vulnerability

  • CVE-2024-34559: Ghost CMS Information Disclosure Flaw

  • CVE-2026-29784: Ghost CMS CSRF Vulnerability

  • CVE-2026-29053: Ghost CMS RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English