The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-21678

CVE-2024-21678: Confluence Data Center XSS Vulnerability

CVE-2024-21678 is a high-severity stored XSS flaw in Atlassian Confluence Data Center with a CVSS score of 8.5. Authenticated attackers can execute arbitrary code in victim browsers. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-21678 Overview

CVE-2024-21678 is a Stored Cross-Site Scripting (XSS) vulnerability affecting Atlassian Confluence Data Center and Confluence Server. This vulnerability was introduced in version 2.7.0 and allows an authenticated attacker to inject and execute arbitrary HTML or JavaScript code in a victim's browser session. The stored nature of this XSS vulnerability means that malicious payloads persist within the Confluence application, executing whenever other users access the compromised content.

The vulnerability enables attackers with authenticated access to Confluence to store malicious scripts that execute in the context of other users' browser sessions. This can lead to session hijacking, credential theft, and unauthorized actions performed on behalf of legitimate users.

Critical Impact

Authenticated attackers can execute arbitrary JavaScript in victim browsers, enabling session hijacking, credential theft, and unauthorized access to sensitive Confluence content with high confidentiality impact.

Affected Products

  • Atlassian Confluence Data Center versions 2.7.0 through 8.7.1
  • Atlassian Confluence Server versions 2.7.0 through 8.5.4 LTS
  • Multiple version branches including 7.17.x, 7.18.x, 7.19.x LTS, 7.20.x, 8.0.x through 8.7.x

Discovery Timeline

  • 2024-02-20 - CVE-2024-21678 published to NVD
  • 2025-05-06 - Last updated in NVD database

Technical Details for CVE-2024-21678

Vulnerability Analysis

This Stored XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) allows an authenticated attacker to inject malicious script content that persists within Confluence and executes whenever other users view the affected content. The attack can be launched remotely over the network and requires only low-privilege authenticated access to execute.

The vulnerability has high impact on confidentiality as attackers can steal session tokens, cookies, and sensitive data displayed within Confluence pages. There is also low impact on integrity, as attackers could potentially modify content or perform actions as the victim user. The attack requires no user interaction beyond normal browsing of Confluence content, making it particularly dangerous in collaborative environments.

This vulnerability was discovered through Atlassian's Bug Bounty program, demonstrating the value of coordinated security research in identifying such flaws before malicious exploitation.

Root Cause

The root cause of CVE-2024-21678 is insufficient input validation and output encoding within the Confluence application. When user-supplied content is stored and later rendered, the application fails to properly sanitize or escape potentially dangerous HTML and JavaScript constructs. This allows specially crafted input containing script elements to be stored in the database and executed when the content is subsequently displayed to other users.

The lack of proper Content Security Policy (CSP) enforcement or inadequate XSS filtering mechanisms enables the malicious payload to execute in the context of the victim's authenticated session.

Attack Vector

The attack vector for this vulnerability involves an authenticated attacker submitting malicious content through Confluence's various input mechanisms such as page creation, comments, macros, or other user-generated content features. Once the malicious script is stored within the Confluence database, it executes automatically whenever another user views the affected page or content.

The attacker does not need elevated privileges—only standard authenticated access to create or modify content. When a victim user with any privilege level (including administrators) views the compromised content, the injected JavaScript executes within their browser session, potentially allowing the attacker to:

  • Steal session cookies and authentication tokens
  • Perform actions on behalf of the victim user
  • Access sensitive information visible to the victim
  • Redirect users to malicious external sites
  • Modify page content or create additional malicious pages

Since no user interaction is required beyond viewing the page, and the payload persists until removed, this vulnerability can affect a large number of users across an organization.

Detection Methods for CVE-2024-21678

Indicators of Compromise

  • Unusual JavaScript or HTML content within Confluence pages, comments, or macros that includes <script> tags, event handlers (onclick, onerror, onload), or JavaScript URIs
  • Unexpected external resource requests originating from Confluence pages to unknown domains
  • Session anomalies such as multiple concurrent sessions or sessions from unexpected geographic locations
  • User reports of unexpected behavior when viewing specific Confluence pages
  • Audit log entries showing bulk content modifications by single users

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block common XSS payload patterns in requests to Confluence
  • Enable and review Confluence audit logs for suspicious content creation or modification activities
  • Deploy browser-based security solutions that can detect and block malicious script execution
  • Conduct regular automated scanning of Confluence content for embedded scripts or suspicious HTML constructs
  • Monitor network traffic for unusual outbound connections originating from Confluence user sessions

Monitoring Recommendations

  • Configure alerts for Confluence audit events related to page creation and modification, particularly those containing script-like content
  • Implement Content Security Policy (CSP) headers and monitor for CSP violation reports
  • Deploy endpoint detection and response (EDR) solutions to detect browser-based attacks targeting authenticated sessions
  • Establish baseline metrics for Confluence usage patterns and alert on anomalous activity

How to Mitigate CVE-2024-21678

Immediate Actions Required

  • Upgrade Confluence Data Center to version 8.8.0 (recommended) or applicable fixed version for your branch
  • Upgrade Confluence Server to version 8.5.5 LTS or 8.5.6 LTS (recommended)
  • For organizations running older LTS versions, upgrade to 7.19.18 LTS or 7.19.19 LTS
  • Review Confluence audit logs for any suspicious content modifications prior to patching
  • Consider temporarily restricting content creation permissions to trusted users until patches are applied

Patch Information

Atlassian has released patches addressing CVE-2024-21678 across multiple version branches. The recommended upgrade path depends on your current deployment:

Confluence Data Center:

  • Version 8.8.0 is the recommended target for all deployments
  • Fixed versions include 8.7.2, 8.5.5 LTS, 8.5.6 LTS, 7.19.18 LTS, and 7.19.19 LTS

Confluence Server:

  • Version 8.5.6 LTS is the recommended target
  • Fixed versions include 8.5.5 LTS, 7.19.18 LTS, and 7.19.19 LTS

Detailed version-specific guidance is available in the Atlassian Security Advisory and the JIRA issue CONFSERVER-94513. The latest Confluence releases can be obtained from the Atlassian Download Center.

Workarounds

  • Implement strict Content Security Policy (CSP) headers to restrict inline script execution, though this may impact Confluence functionality
  • Temporarily restrict page creation and editing permissions to trusted administrators only
  • Deploy a web application firewall (WAF) with XSS detection rules in front of Confluence instances
  • Enable browser-based XSS protection mechanisms and ensure users have updated browsers
  • Consider placing Confluence behind additional authentication layers to limit exposure
bash
# Example: Restrict Confluence access via Apache reverse proxy
# Add to Apache configuration to implement basic WAF-like protection
<Location "/confluence">
    # Block common XSS patterns in query strings
    RewriteEngine On
    RewriteCond %{QUERY_STRING} (<script|javascript:|onerror=|onload=) [NC]
    RewriteRule .* - [F,L]
    
    # Add security headers
    Header always set X-XSS-Protection "1; mode=block"
    Header always set X-Content-Type-Options "nosniff"
    Header always set Content-Security-Policy "script-src 'self'; object-src 'none'"
</Location>

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechAtlassian Confluence

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability1.54%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • Atlassian Confluence Documentation

  • Atlassian JIRA Issue CONFSERVER-94513
  • Related CVEs
  • CVE-2022-26138: Atlassian Questions Auth Bypass Vulnerability

  • CVE-2023-22515: Confluence Data Center Auth Bypass Flaw

  • CVE-2023-22518: Confluence Data Center Auth Bypass Flaw

  • CVE-2023-22527: Confluence Data Center RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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