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
    • 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-2026-22704

CVE-2026-22704: HAX CMS Stored XSS Vulnerability

CVE-2026-22704 is a stored cross-site scripting vulnerability in HAX CMS that can lead to account takeover. This article covers the technical details, affected versions from 11.0.6 to before 25.0.0, and mitigation steps.

Updated: January 22, 2026

CVE-2026-22704 Overview

CVE-2026-22704 is a stored Cross-Site Scripting (XSS) vulnerability affecting HAX CMS, a content management system designed to manage microsite universes with PHP or NodeJs backends. The vulnerability exists in versions 11.0.6 through 24.x.x and allows attackers to inject malicious scripts that persist in the application, potentially leading to complete account takeover.

Critical Impact

This stored XSS vulnerability can be exploited to hijack user sessions and take over administrator accounts, granting attackers full control over the affected HAX CMS installation.

Affected Products

  • HAX CMS versions 11.0.6 to before 25.0.0
  • HAX CMS NodeJs backend
  • HAX CMS PHP backend

Discovery Timeline

  • January 10, 2026 - CVE-2026-22704 published to NVD
  • January 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-22704

Vulnerability Analysis

This stored XSS vulnerability (CWE-79) in HAX CMS allows authenticated attackers with low privileges to inject malicious HTML or JavaScript code that gets stored on the server and executed in the browsers of other users who view the affected content. The attack requires user interaction, as a victim must navigate to a page containing the malicious payload.

The vulnerability has a changed scope, meaning that exploitation can affect resources beyond the vulnerable component itself. When successfully exploited, an attacker can achieve high impact on confidentiality, integrity, and availability of the target system, ultimately leading to full account takeover of other users including administrators.

Root Cause

The root cause of this vulnerability is improper input sanitization and output encoding of user-supplied content, combined with the ability to upload and serve HTML files directly from the application's files directories. When HTML files are served with their native content type rather than being forced as downloads, any embedded JavaScript executes in the context of the application's origin.

Attack Vector

The attack is network-based and requires an authenticated attacker with low privileges to upload a malicious HTML file to the sites' files directories. When another user (such as an administrator) navigates to or is tricked into visiting the uploaded HTML file, the malicious script executes with full access to the victim's session, cookies, and the DOM of the HAX CMS application.

The attacker can leverage this to steal session tokens, perform actions as the victim, or redirect users to phishing pages. The changed scope indicates the XSS can affect the broader application context beyond just the file serving component.

javascript
// Security patch from src/app.js - forces HTML file downloads to prevent XSS
 app.use(express.urlencoded({limit: '50mb',  extended: false, parameterLimit: 50000 }));
 app.use(helmet(helmetPolicies));
 app.use(cookieParser());

+// Security: Force download of HTML files in sites' files directories to prevent XSS
+app.use((req, res, next) => {
+  if (req.url.includes('/files/') && /\.html?$/i.test(req.url.split('?')[0])) {
+    res.setHeader('Content-Disposition', 'attachment');
+  }
+  next();
+});
 //pre-flight requests
 app.options('*', function(req, res, next) {
 	res.sendStatus(200);

Source: GitHub Commit

Detection Methods for CVE-2026-22704

Indicators of Compromise

  • Unexpected HTML files uploaded to /files/ directories within HAX CMS sites
  • HTML files containing <script> tags, event handlers (e.g., onerror, onload), or suspicious JavaScript code
  • Access logs showing requests to HTML files in files directories followed by unusual API calls or session changes
  • Reports of users being redirected to external sites or experiencing unexpected behavior

Detection Strategies

  • Implement file upload monitoring to flag HTML/HTM files uploaded to sites' files directories
  • Deploy Web Application Firewall (WAF) rules to detect common XSS payloads in file uploads
  • Monitor application logs for suspicious access patterns to uploaded HTML files
  • Use Content Security Policy (CSP) violation reporting to detect script execution attempts

Monitoring Recommendations

  • Enable detailed logging for file upload operations and track HTML file uploads specifically
  • Set up alerts for new HTML files appearing in the /files/ directories
  • Monitor for unusual session activity that may indicate session hijacking following XSS exploitation
  • Implement real-time analysis of uploaded file contents for malicious script patterns

How to Mitigate CVE-2026-22704

Immediate Actions Required

  • Upgrade HAX CMS to version 25.0.0 or later immediately
  • Audit existing uploaded files in /files/ directories for malicious HTML content
  • Consider removing or quarantining existing HTML files in sites' files directories pending review
  • Force all active user sessions to re-authenticate after applying the patch

Patch Information

The vulnerability has been addressed in HAX CMS version 25.0.0. The fix implements middleware that forces the download of HTML files when accessed from sites' files directories by setting the Content-Disposition: attachment header. This prevents browsers from rendering the HTML content inline, effectively neutralizing the XSS attack vector.

For detailed patch information, refer to the GitHub Security Advisory GHSA-3fm2-xfq7-7778 and the v25.0.0 release notes.

Workarounds

  • Implement server-level configuration to force Content-Disposition: attachment headers for HTML files in /files/ directories
  • Block HTML file uploads entirely through application configuration if not required for business operations
  • Configure a Web Application Firewall to strip or neutralize script content from uploaded HTML files
  • Apply strict Content Security Policy headers to limit script execution sources
bash
# Nginx configuration to force download of HTML files in files directories
location ~* /files/.*\.html?$ {
    add_header Content-Disposition "attachment" always;
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechHax Cms

  • SeverityHIGH

  • CVSS Score8.0

  • EPSS Probability0.04%

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

  • GitHub Release v25.0.0

  • GitHub Security Advisory GHSA-3fm2-xfq7-7778
  • Related CVEs
  • CVE-2026-35185: HAX CMS Information Disclosure 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