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
    • 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-39422

CVE-2026-39422: MaxKB AI Assistant Stored XSS Vulnerability

CVE-2026-39422 is a stored XSS vulnerability in MaxKB AI assistant that allows attackers to inject malicious scripts through application fields. This article covers technical details, affected versions, and mitigation.

Published: April 17, 2026

CVE-2026-39422 Overview

MaxKB, an open-source AI assistant for enterprise environments, contains a Stored Cross-Site Scripting (XSS) vulnerability in versions 2.7.1 and below. The vulnerability exists in the application name and icon fields when creating an application. When a victim visits the public chat interface at /ui/chat/{access_token}, the ChatHeadersMiddleware retrieves application data and directly inserts the unescaped application name and icon into the HTML response via string replacement. This allows an attacker to execute arbitrary JavaScript in the victim's browser context.

Critical Impact

Attackers can inject malicious JavaScript that executes in victims' browsers, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of authenticated users.

Affected Products

  • MaxKB version 2.7.1 and below
  • 1Panel-dev MaxKB open-source AI assistant deployments
  • Public chat interfaces exposed at /ui/chat/{access_token} endpoints

Discovery Timeline

  • 2026-04-14 - CVE-2026-39422 published to NVD
  • 2026-04-14 - Last updated in NVD database

Technical Details for CVE-2026-39422

Vulnerability Analysis

This Stored XSS vulnerability (CWE-79) stems from improper handling of user-supplied input in the MaxKB application creation workflow. The attack requires low privileges to execute, as an authenticated user with application creation permissions can inject malicious payloads. However, exploitation requires victim interaction—specifically, a victim must visit the compromised public chat interface for the malicious script to execute.

The vulnerability impacts the integrity of the victim's session, as attackers can modify page content, redirect users, or perform actions on their behalf. While confidentiality is not directly affected according to the vulnerability assessment, the integrity impact is considered high due to the potential for arbitrary JavaScript execution.

Root Cause

The root cause of this vulnerability lies in the ChatHeadersMiddleware component, which fails to properly sanitize or escape application data before inserting it into HTML responses. When an application is created with a malicious name or icon field, the middleware uses direct string replacement to embed these values into the HTML without encoding special characters. This allows HTML and JavaScript content to be interpreted by the browser rather than displayed as text.

Attack Vector

The attack follows a network-based vector requiring the following conditions:

  1. Attacker Prerequisites: The attacker must have authenticated access with permissions to create applications within MaxKB
  2. Payload Injection: The attacker creates an application with a malicious name or icon field containing JavaScript code (e.g., <script>alert(document.cookie)</script> or event handler attributes)
  3. Persistence: The malicious payload is stored in the application database
  4. Victim Interaction: When any user visits the public chat interface URL (/ui/chat/{access_token}) for the compromised application, the ChatHeadersMiddleware retrieves the application data and injects the unescaped payload directly into the HTML response
  5. Execution: The victim's browser parses the HTML and executes the injected JavaScript in the context of the MaxKB domain

The attacker can leverage this to steal session tokens, perform phishing attacks, or execute actions with the victim's privileges.

Detection Methods for CVE-2026-39422

Indicators of Compromise

  • Unusual application names or icon fields containing HTML tags, <script> elements, or JavaScript event handlers in the MaxKB database
  • Server logs showing requests to /ui/chat/{access_token} endpoints followed by suspicious client-side behavior
  • Application creation audit logs with payloads containing characters such as <, >, ", ', or javascript: URIs

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block unauthorized inline script execution
  • Monitor application creation and modification events for inputs containing HTML special characters or script-related keywords
  • Deploy web application firewall (WAF) rules to flag requests with XSS payload patterns in application name or icon parameters
  • Enable browser-based XSS auditing and review client-side error logs for blocked script attempts

Monitoring Recommendations

  • Audit the application table in the MaxKB database for entries containing suspicious script content in name or icon columns
  • Review access logs for the /ui/chat/ endpoint path to identify potential victim access to compromised applications
  • Configure alerting for application modifications by users who should not have elevated privileges

How to Mitigate CVE-2026-39422

Immediate Actions Required

  • Upgrade MaxKB to version 2.8.0 or later, which contains the fix for this vulnerability
  • Audit existing applications for malicious content in name and icon fields and sanitize or remove compromised entries
  • Restrict application creation permissions to trusted administrators until the patch is applied
  • Implement Content Security Policy headers to mitigate the impact of any existing XSS payloads

Patch Information

The vulnerability has been addressed in MaxKB version 2.8.0. The fix is available through the GitHub Release v2.8.0. The specific commit addressing this vulnerability can be reviewed at the GitHub Commit. For complete details on the vulnerability disclosure, refer to the GitHub Security Advisory GHSA-wf7p-3jq5-q52w.

Workarounds

  • Manually sanitize application name and icon fields in the database by HTML-encoding special characters (<, >, ", ', &)
  • Implement input validation at the application creation API level to reject inputs containing HTML tags or script content
  • Deploy a reverse proxy or WAF rule to strip or encode potentially malicious characters from application creation requests
  • Disable public chat interface access temporarily by restricting access to /ui/chat/ endpoints until patching is complete
bash
# Example: Database audit query to identify potentially compromised applications
# Run this against your MaxKB database to find suspicious entries
SELECT id, name, icon FROM application 
WHERE name LIKE '%<script%' 
   OR name LIKE '%javascript:%' 
   OR name LIKE '%onerror=%'
   OR icon LIKE '%<script%'
   OR icon LIKE '%javascript:%';

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMaxkb

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/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
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Summary

  • GitHub Release v2.8.0

  • GitHub Security Advisory GHSA-wf7p-3jq5-q52w
  • Related CVEs
  • CVE-2026-39426: MaxKB AI Assistant Stored XSS Vulnerability

  • CVE-2026-39425: MaxKB Stored XSS Vulnerability

  • CVE-2026-39423: MaxKB AI Assistant XSS Vulnerability

  • CVE-2026-39419: MaxKB Auth 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