Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-39392

CVE-2026-39392: CI4MS CodeIgniter CMS XSS Vulnerability

CVE-2026-39392 is a cross-site scripting flaw in CI4MS CodeIgniter CMS that allows authenticated admins to inject malicious JavaScript into page content. This post covers technical details, affected versions, and mitigation.

Published: April 9, 2026

CVE-2026-39392 Overview

CVE-2026-39392 is a stored Cross-Site Scripting (XSS) vulnerability affecting CI4MS, a CodeIgniter 4-based CMS skeleton that provides a production-ready, modular architecture with RBAC authorization and theme support. The vulnerability exists in the Pages module, which fails to apply the html_purify validation rule to content fields during create and update operations. This allows authenticated administrators with page-editing privileges to inject arbitrary JavaScript that executes in the browsers of public visitors viewing the compromised pages.

Critical Impact

Authenticated administrators can inject persistent malicious JavaScript into page content, enabling session hijacking, credential theft, and malware distribution to all public visitors viewing the affected pages.

Affected Products

  • CI4MS versions prior to 0.31.4.0
  • CI4MS Pages module (all versions before the fix)
  • Websites built on vulnerable CI4MS installations

Discovery Timeline

  • 2026-04-08 - CVE CVE-2026-39392 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-39392

Vulnerability Analysis

This stored XSS vulnerability stems from an inconsistency in input sanitization between the Pages and Blog modules within CI4MS. While the Blog module properly applies the html_purify validation rule to content fields, the Pages module omits this critical security control during both create and update operations.

The attack requires an authenticated user with page-editing privileges to exploit. Once malicious JavaScript is injected into a page's content field, it is stored unsanitized in the database. When public visitors access the affected page, the content is rendered as raw HTML via echo $pageInfo->content, causing the injected script to execute in their browsers.

The cross-site nature of this vulnerability (indicated by the changed scope in the CVSS assessment) means that the impact extends beyond the vulnerable application itself, affecting visitors' browsers and potentially their sessions with other sites.

Root Cause

The root cause is the missing html_purify validation rule in the Pages module's content handling logic. The CodeIgniter 4 framework provides this validation rule specifically to sanitize HTML content and prevent XSS attacks. The Blog module correctly implements this protection, but the Pages module was inadvertently left without this security control.

The vulnerable code path allows raw HTML content to be:

  1. Submitted through the page creation/update forms
  2. Stored directly in the database without sanitization
  3. Retrieved and rendered as-is on the public frontend

Attack Vector

The attack vector is network-based and requires high privileges (admin-level page-editing access). An attacker who has compromised or obtained administrative credentials can exploit this vulnerability through the following attack flow:

  1. Authenticate to the CI4MS admin panel with page-editing privileges
  2. Navigate to the Pages module and create or edit a page
  3. Insert malicious JavaScript within the content field (e.g., <script> tags or event handlers)
  4. Save the page, storing the unsanitized payload in the database
  5. When any public visitor views the page, the malicious script executes in their browser context

The vulnerability enables various attack scenarios including session cookie theft, keylogging, phishing overlays, cryptocurrency mining, and redirection to malicious sites. For additional technical details, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-39392

Indicators of Compromise

  • Unusual JavaScript code present in page content fields within the database
  • Unexpected <script> tags, <iframe> elements, or JavaScript event handlers (e.g., onerror, onload, onclick) in stored page content
  • Database queries showing HTML content with encoded or obfuscated JavaScript patterns
  • Reports from users experiencing unexpected browser behavior when visiting specific pages

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and log XSS payloads in POST requests to page creation/update endpoints
  • Deploy Content Security Policy (CSP) headers with report-uri to capture policy violations indicating script injection attempts
  • Perform regular database audits scanning page content tables for suspicious JavaScript patterns
  • Enable application logging for all administrative page modifications with content change tracking

Monitoring Recommendations

  • Monitor administrative login activity for unusual patterns or compromised credential usage
  • Track page modification events and flag content changes containing script-related tags or attributes
  • Implement client-side monitoring through CSP violation reporting to detect when injected scripts attempt execution
  • Review web server access logs for patterns indicating automated exploitation attempts against the Pages module

How to Mitigate CVE-2026-39392

Immediate Actions Required

  • Upgrade CI4MS to version 0.31.4.0 or later immediately
  • Audit all existing page content in the database for malicious JavaScript injections
  • Remove or sanitize any suspicious content discovered during the audit
  • Review administrative access logs to identify potential exploitation

Patch Information

The vulnerability has been fixed in CI4MS version 0.31.4.0. The patch applies the html_purify validation rule to the Pages module's content fields, bringing it in line with the Blog module's security controls. Users should upgrade to this version or later to remediate the vulnerability.

For detailed patch information and upgrade instructions, refer to the GitHub Security Advisory.

Workarounds

  • Restrict page-editing privileges to only trusted administrators until the upgrade can be completed
  • Implement a Web Application Firewall (WAF) with XSS filtering rules as an interim protection layer
  • Add Content Security Policy (CSP) headers to mitigate the impact of any existing injected scripts by blocking inline script execution
  • Manually apply the html_purify validation rule to the Pages module controller if immediate upgrade is not feasible
bash
# Content Security Policy header configuration for Apache
# Add to .htaccess or virtual host configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'none';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCi4ms

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39391: CI4MS CodeIgniter CMS XSS Vulnerability

  • CVE-2026-34571: CI4MS Backend Stored XSS Vulnerability

  • CVE-2026-34567: CI4MS CodeIgniter CMS XSS Vulnerability

  • CVE-2026-34563: CI4MS CMS Stored XSS 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