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-2022-50905

CVE-2022-50905: e107 CMS Cross-Site Scripting Vulnerability

CVE-2022-50905 is a cross-site scripting flaw in e107 CMS 2.3.1 affecting news comments and media uploads. Attackers can inject malicious scripts via URL parameters or SVG files. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2022-50905 Overview

e107 CMS version 3.2.1 contains multiple cross-site scripting (XSS) vulnerabilities that affect both authenticated users and administrators. The first vulnerability is a reflected XSS that occurs in the news comment functionality when authenticated users interact with the comment form. An attacker can inject malicious JavaScript code through the URL parameter that gets executed when users click outside the comment field after typing content. The second vulnerability involves an upload restriction bypass for authenticated administrators, allowing them to upload SVG files containing malicious code through the media manager's remote URL upload feature, resulting in stored XSS when the uploaded SVG files are accessed.

Critical Impact

Attackers can execute arbitrary JavaScript in users' browsers through reflected XSS in comment forms and stored XSS via malicious SVG file uploads, potentially leading to session hijacking, credential theft, and unauthorized actions on behalf of victims.

Affected Products

  • e107 CMS version 3.2.1
  • news.php component (comment functionality)
  • image.php component (media manager)

Discovery Timeline

  • 2026-01-13 - CVE CVE-2022-50905 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2022-50905

Vulnerability Analysis

This vulnerability consists of two distinct XSS attack vectors within e107 CMS. The reflected XSS vulnerability in the news comment functionality exploits improper input sanitization of URL parameters. When an authenticated user interacts with the comment form and then clicks outside the input field, malicious JavaScript embedded in the URL is executed within the context of the user's session. This attack requires user interaction but can be delivered through social engineering tactics.

The stored XSS vulnerability takes advantage of insufficient file upload validation in the media manager. Authenticated administrators can upload SVG files via the remote URL upload feature without proper content sanitization. Since SVG files can contain embedded JavaScript, any user accessing these uploaded files will execute the malicious code. This creates a persistent attack vector that affects all visitors who view the compromised media content.

Root Cause

The root cause of these vulnerabilities stems from inadequate input validation and output encoding (CWE-79). In the reflected XSS case, the application fails to properly sanitize URL parameters before rendering them in the page context. For the stored XSS vulnerability, the media manager does not adequately validate or sanitize the contents of uploaded SVG files, allowing embedded script elements to persist and execute when the files are served to users.

Attack Vector

The attack leverages the network attack vector requiring user interaction. For the reflected XSS, an attacker crafts a malicious URL containing JavaScript payload and tricks an authenticated user into clicking it. When the victim interacts with the comment form and then clicks outside the input area, the injected script executes. For the stored XSS, an attacker with administrator privileges uploads a malicious SVG file through the remote URL upload feature. The malicious code persists on the server and executes whenever users access the uploaded file.

The reflected XSS attack flow involves URL parameter injection in the news comment functionality. When a user visits a crafted malicious URL and interacts with the comment form, the JavaScript payload embedded in the URL parameter is reflected back and executed in the browser context. The stored XSS attack flow involves uploading an SVG file containing malicious JavaScript through the media manager's remote upload functionality. Once uploaded, the file is served to any user who accesses it, triggering script execution. For detailed exploitation techniques, refer to the Exploit-DB #50910 entry.

Detection Methods for CVE-2022-50905

Indicators of Compromise

  • Unusual URL parameters in news.php requests containing encoded JavaScript or HTML tags
  • SVG files uploaded to the media manager containing <script> tags or event handlers
  • Web server logs showing requests to news.php with suspicious query string patterns
  • Unexpected SVG files in the e107 media directories that contain embedded JavaScript

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block XSS patterns in URL parameters
  • Monitor HTTP request logs for encoded script tags (%3Cscript%3E) in query strings targeting news.php
  • Implement file integrity monitoring on the e107 media upload directories
  • Scan uploaded SVG files for embedded JavaScript using automated content inspection tools

Monitoring Recommendations

  • Enable detailed access logging for the e107 application and review logs for suspicious URL patterns
  • Set up alerts for administrator file uploads containing SVG format files
  • Monitor browser security reports (CSP violations) if Content Security Policy is implemented
  • Conduct periodic security scans of the media directory for files containing script elements

How to Mitigate CVE-2022-50905

Immediate Actions Required

  • Restrict access to the e107 CMS administrative interface to trusted IP addresses only
  • Disable or restrict SVG file uploads through the media manager until patches are applied
  • Implement Content Security Policy (CSP) headers to mitigate the impact of XSS attacks
  • Review and sanitize existing uploaded SVG files in the media directory

Patch Information

Check the e107 Official Website and e107 Download Page for updated versions that address these vulnerabilities. Review the VulnCheck Advisory on eCMS XSS for additional security guidance. Upgrade to the latest version of e107 CMS as patches become available.

Workarounds

  • Implement server-side input validation to sanitize all URL parameters before processing
  • Configure the web server to add Content-Disposition: attachment headers for SVG files to prevent inline rendering
  • Block SVG file uploads entirely through the media manager configuration
  • Deploy a WAF with XSS protection rules in front of the e107 application
bash
# Apache configuration to prevent inline SVG execution
# Add to .htaccess or Apache configuration for e107 media directory

<FilesMatch "\.svg$">
    Header set Content-Disposition "attachment"
    Header set X-Content-Type-Options "nosniff"
    Header set Content-Security-Policy "script-src 'none'"
</FilesMatch>

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechE107 Cms

  • SeverityMEDIUM

  • CVSS Score5.1

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • e107 Official Website

  • e107 Download Page

  • Exploit-DB #50910

  • VulnCheck Advisory on eCMS XSS
  • Related CVEs
  • CVE-2022-50939: e107 CMS Path Traversal Vulnerability

  • CVE-2022-50906: e107 CMS Upload Bypass 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