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-2026-24045

CVE-2026-24045: Docmost Stored XSS Vulnerability

CVE-2026-24045 is a stored XSS vulnerability in Docmost collaborative wiki software that allows attackers to execute arbitrary JavaScript via malicious page titles. This article covers technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-24045 Overview

CVE-2026-24045 is a Stored Cross-Site Scripting (XSS) vulnerability affecting Docmost, an open-source collaborative wiki and documentation software. The vulnerability exists in the public share page functionality, which fails to properly HTML-escape page titles before inserting them into meta tags and the title tag. This allows attackers to execute arbitrary JavaScript in the context of any user who opens a shared page link.

Critical Impact

Attackers can execute arbitrary JavaScript code in victims' browsers when they access shared page links, potentially leading to session hijacking, credential theft, and unauthorized actions performed on behalf of authenticated users.

Affected Products

  • Docmost versions prior to 0.25.0
  • Docmost public share page functionality
  • Self-hosted Docmost deployments with sharing features enabled

Discovery Timeline

  • 2026-02-10 - CVE CVE-2026-24045 published to NVD
  • 2026-02-10 - Last updated in NVD database

Technical Details for CVE-2026-24045

Vulnerability Analysis

The vulnerability stems from improper output encoding in Docmost's share page rendering mechanism. When a page is shared publicly, Docmost generates an HTML response that includes the page title in both the <title> tag and various SEO-related <meta> tags. The application fails to sanitize or escape user-controlled page titles before embedding them into this HTML context.

This creates a Stored XSS condition where malicious JavaScript payloads embedded in page titles persist in the database and execute whenever any user accesses the shared page link. The attack requires low privileges (an authenticated user who can create or modify page titles) and requires user interaction (the victim must visit the malicious shared link).

The impact is significant as it affects both the confidentiality and integrity of user sessions. Attackers can steal session cookies, perform actions on behalf of victims, redirect users to phishing pages, or inject malicious content into the application interface.

Root Cause

The root cause is missing HTML entity encoding when rendering page titles in the server-side share page controller. Specifically, the share-seo.controller.ts file directly interpolates page titles into HTML output without passing them through an HTML escape function. Characters such as <, >, ", ', and & are not converted to their corresponding HTML entities, allowing attackers to break out of the intended tag context and inject arbitrary HTML/JavaScript.

Attack Vector

The attack is network-based and follows this pattern:

  1. An authenticated attacker creates or modifies a Docmost page with a malicious title containing JavaScript payload (e.g., <script>alert(document.cookie)</script>)
  2. The attacker generates a public share link for this page
  3. The attacker distributes the share link to potential victims via email, messaging, or other channels
  4. When victims access the shared link, the malicious page title is rendered without escaping
  5. The injected JavaScript executes in the victim's browser context with full access to the Docmost application
typescript
// Security patch adding HTML escaping functionality
// Source: https://github.com/docmost/docmost/commit/f3f74c591f32f85b8aa9a98ed884a7dd455780f9

// apps/server/src/common/helpers/html-escaper.ts
// https://github.com/WebReflection/html-escaper
/**
 * Copyright (C) 2017-present by Andrea Giammarchi - @WebReflection
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 */

const { replace } = '';

// escape
const es = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g;
const ca = /[&<>'"]/g;

const esca = {
  // ... escape mapping implementation
};

The fix introduces a dedicated htmlEscape function and applies it to page titles in the share controller:

typescript
// apps/server/src/core/share/share-seo.controller.ts
import { WorkspaceRepo } from '@docmost/db/repos/workspace/workspace.repo';
import { EnvironmentService } from '../../integrations/environment/environment.service';
import { Workspace } from '@docmost/db/types/entity.types';
+import { htmlEscape } from '../../common/helpers/html-escaper';

@Controller('share')
export class ShareSeoController {
  // ... page title is now passed through htmlEscape() before rendering
}

Source: GitHub Commit Update

Detection Methods for CVE-2026-24045

Indicators of Compromise

  • Page titles containing HTML tags or JavaScript code patterns such as <script>, <img onerror=, or javascript: URI schemes
  • Unusual characters in page titles including angle brackets (<>), quotes, or encoded sequences
  • Web application firewall logs showing XSS payload patterns in requests to share endpoints
  • User reports of unexpected browser behavior when accessing shared Docmost links

Detection Strategies

  • Implement Content Security Policy (CSP) headers to restrict inline script execution and report violations
  • Monitor web server access logs for requests to /share/ endpoints with suspicious query parameters or referrers
  • Deploy web application firewall rules to detect common XSS payload patterns in HTTP traffic
  • Audit database records for page titles containing potentially malicious HTML or JavaScript content

Monitoring Recommendations

  • Enable CSP reporting to collect data on blocked script executions that may indicate exploitation attempts
  • Configure SIEM alerting for patterns indicative of XSS attacks targeting documentation platforms
  • Monitor for anomalous user session behavior following access to shared page links
  • Review application logs for errors related to malformed page titles or rendering issues

How to Mitigate CVE-2026-24045

Immediate Actions Required

  • Upgrade Docmost to version 0.25.0 or later immediately
  • Audit existing page titles for potentially malicious content and sanitize any suspicious entries
  • Temporarily disable public page sharing functionality if immediate upgrade is not possible
  • Implement Content Security Policy headers to reduce XSS impact while patching is underway

Patch Information

The vulnerability is fixed in Docmost version 0.25.0. The patch introduces proper HTML escaping for page titles using the htmlEscape helper function from the html-escaper library. The fix is applied in the share-seo.controller.ts file, ensuring all user-controlled content is properly encoded before being inserted into HTML context.

  • GitHub Release v0.25.0 - Official release containing the security fix
  • GitHub Security Advisory GHSA-h7fp-4f37-29wq - Detailed security advisory
  • GitHub Commit Update - Commit f3f74c591f32f85b8aa9a98ed884a7dd455780f9 containing the fix

Workarounds

  • Disable public page sharing functionality at the application or reverse proxy level until patching is complete
  • Implement a reverse proxy rule to strip or block requests containing common XSS payload patterns in share URLs
  • Deploy a Web Application Firewall (WAF) with XSS protection rules in front of Docmost instances
  • Restrict page creation and modification permissions to trusted users only
bash
# Example: Nginx configuration to add Content Security Policy header
# Add to your Docmost server block configuration

server {
    # ... existing configuration ...
    
    # Add Content Security Policy to mitigate XSS impact
    add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self';" always;
    
    # Optional: Block requests with common XSS patterns in share endpoint
    location /share/ {
        if ($request_uri ~* "(<script|javascript:|onerror=|onload=)") {
            return 403;
        }
        proxy_pass http://docmost_backend;
    }
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechDocmost

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Update

  • GitHub Release v0.25.0

  • GitHub Security Advisory GHSA-h7fp-4f37-29wq
  • Related CVEs
  • CVE-2026-23630: Docmost Mermaid Stored XSS Vulnerability

  • CVE-2026-22249: Docmost Path Traversal 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