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-2023-4879

CVE-2023-4879: Instantcms Stored XSS Vulnerability

CVE-2023-4879 is a stored cross-site scripting vulnerability in Instantcms that allows attackers to inject malicious scripts into web pages. This article covers technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-4879 Overview

CVE-2023-4879 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in the InstantCMS content management system (icms2) affecting versions prior to 2.16.1.-git. This vulnerability exists in the admin panel where user-supplied input is not properly sanitized before being rendered in HTML output, allowing attackers with administrative privileges to inject malicious scripts that persist in the application and execute in the browsers of other users viewing the affected pages.

Critical Impact

Authenticated attackers with high privileges can inject persistent malicious scripts in the InstantCMS admin panel, potentially leading to session hijacking, credential theft, or further compromise of administrative accounts.

Affected Products

  • InstantCMS (icms2) versions prior to 2.16.1.-git
  • InstantCMS admin panel widget management functionality
  • InstantCMS content type configuration forms

Discovery Timeline

  • 2023-09-10 - CVE-2023-4879 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-4879

Vulnerability Analysis

This Stored XSS vulnerability resides in the InstantCMS admin panel, specifically within the widget management functionality and content type configuration forms. The vulnerability occurs because user-controlled input values are directly inserted into HTML attributes without proper encoding or sanitization.

When processing widget positions and block configurations, the application constructs HTML elements using variable values that are incorporated directly into rel and id attributes. An attacker with administrative access can craft malicious input containing JavaScript payloads that will be stored in the application and subsequently executed when other administrators access the affected admin pages.

The vulnerability requires the attacker to have high privileges (administrative access) and requires user interaction (another admin must view the affected page), but because the scope is changed, the impact extends beyond the vulnerable component to affect the confidentiality and integrity of other users' sessions.

Root Cause

The root cause of this vulnerability is the failure to apply proper HTML encoding to user-supplied values before inserting them into HTML element attributes. In the system/controllers/admin/actions/widgets.php file, the $value variable from user input was directly concatenated into HTML strings for the rel and id attributes without sanitization.

Additionally, the content type configuration form lacked the store_via_html_filter option for certain HTML fields, allowing potentially malicious content to be stored without filtering.

Attack Vector

The attack is network-based and requires an authenticated attacker with administrative privileges. The attacker would:

  1. Access the InstantCMS admin panel with valid administrative credentials
  2. Navigate to the widget management or content type configuration interface
  3. Inject malicious JavaScript payloads into input fields that are processed without sanitization
  4. The malicious payload is stored in the application database
  5. When another administrator views the affected page, the stored XSS payload executes in their browser context
php
// Vulnerable code - widgets.php
list($type, $value) = explode(':', $block);

if ($type == 'position') {
    $replace_html = '<ul class="position" rel="' . $value . '" id="pos-' . $value . '"></ul>';
}

Source: GitHub Commit Security Fix

The fix applies the html() encoding function to sanitize the $value variable before inserting it into HTML attributes:

php
// Patched code - widgets.php
list($type, $value) = explode(':', $block);

if ($type === 'position') {
    $replace_html = '<ul class="position" rel="' . html($value, false) . '" id="pos-' . html($value, false) . '"></ul>';
}

Source: GitHub Commit Security Fix

Detection Methods for CVE-2023-4879

Indicators of Compromise

  • Unusual JavaScript code or HTML entities appearing in widget position names or block identifiers in the database
  • Unexpected script tags or event handlers in content type description fields
  • Administrator session anomalies or unauthorized actions following admin panel access
  • Browser developer tools showing inline script execution from admin panel pages

Detection Strategies

  • Review InstantCMS database tables for stored XSS payloads in widget and content type configuration fields
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution
  • Deploy web application firewall (WAF) rules to detect XSS patterns in POST requests to admin endpoints
  • Monitor admin panel access logs for suspicious activity patterns following content modifications

Monitoring Recommendations

  • Enable detailed logging for all admin panel configuration changes
  • Implement real-time alerting for any modifications to widget positions or content type settings
  • Configure browser-based XSS auditing where available
  • Establish baseline behavior for administrative actions to identify anomalous activity

How to Mitigate CVE-2023-4879

Immediate Actions Required

  • Upgrade InstantCMS to version 2.16.1.-git or later immediately
  • Audit existing widget configurations and content type descriptions for potential stored XSS payloads
  • Review admin panel access logs for any suspicious activity
  • Consider temporarily restricting admin panel access to trusted IP addresses during the patching process

Patch Information

The vulnerability has been addressed in commit d0aeeaf5979fbdbf80dc3a3227d6c58442ab7487. The patch applies proper HTML encoding using the html() function to all user-supplied values before they are inserted into HTML attributes in the widget management functionality. Additionally, the store_via_html_filter option has been enabled for HTML description fields in content type configuration forms.

For detailed patch information, refer to the GitHub Commit Security Fix and the Huntr Bounty Report.

Workarounds

  • Implement strict Content Security Policy (CSP) headers to prevent inline script execution
  • Limit admin panel access to a whitelist of trusted IP addresses
  • Enable HTTP-only and Secure flags on all session cookies to reduce the impact of potential session hijacking
  • Regularly audit admin panel input fields for suspicious content until the patch can be applied
bash
# Example Apache configuration to restrict admin access by IP
<Directory "/path/to/instantcms/system/controllers/admin">
    Require ip 192.168.1.0/24
    Require ip 10.0.0.0/8
</Directory>

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechInstantcms

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • GitHub Commit Security Fix

  • Huntr Bounty Report
  • Related CVEs
  • CVE-2026-28281: InstantCMS CSRF 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