Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/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
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
7DescriptionGitHub Advisory
MaxKB is an open-source AI assistant for enterprise. Versions 2.7.1 and below contain a Stored Cross-Site Scripting (XSS) vulnerability that allows authenticated users to inject arbitrary HTML and JavaScript into the Application prologue (Opening Remarks) field by wrapping malicious payloads in <html_rander> tags. The backend fails to sanitize or encode HTML entities in the prologue field when applications are created or updated via the /admin/api/workspace/{workspace_id}/application endpoint, storing the raw payload directly in the database. The frontend then renders this content using an innerHTML-equivalent mechanism, trusting <html_rander>-wrapped content to be safe, which enables persistent DOM-based Stored XSS execution against any visitor who opens the affected chatbot interface. Exploitation can lead to session hijacking, unauthorized actions performed on behalf of victims (such as deleting workspaces or applications), and sensitive data exposure. This issue has been fixed in version 2.8.0.
AnalysisAI
Stored Cross-Site Scripting in MaxKB 2.7.1 and below allows authenticated users to inject arbitrary JavaScript into the Application prologue field via <html_rander> tags, which the backend stores unsanitized and the frontend renders with innerHTML-equivalent mechanisms. Exploitation enables session hijacking, unauthorized workspace/application deletion, and sensitive data exposure against any visitor accessing the affected chatbot. Fixed in version 2.8.0.
Technical ContextAI
MaxKB is an open-source AI assistant platform (CPE: cpe:2.3:a:1panel-dev:maxkb) that provides enterprise chatbot functionality. The vulnerability exists in the /admin/api/workspace/{workspace_id}/application endpoint, which accepts and stores the prologue (Opening Remarks) field without HTML sanitization or entity encoding. The root cause is improper input validation and output encoding (CWE-80: Improper Neutralization of Argument Delimiters in a Command). The frontend trusts <html_rander>-wrapped content as safe and renders it using innerHTML or equivalent DOM manipulation, creating a persistent stored XSS condition. When authenticated users craft payloads wrapped in <html_rander> tags, the backend stores the raw HTML/JavaScript directly in the database, and subsequent page loads execute the malicious script in the context of any visitor's browser session.
RemediationAI
Vendor-released patch: MaxKB 2.8.0. Upgrade MaxKB to version 2.8.0 or later immediately via the official GitHub releases (https://github.com/1Panel-dev/MaxKB/releases/tag/v2.8.0) or your package manager. For deployments unable to upgrade immediately, restrict API access to the /admin/api/workspace/{workspace_id}/application endpoint using network-level controls or authentication middleware to minimize the number of users who can inject payloads. Additionally, implement Content Security Policy (CSP) headers to prevent inline script execution as a temporary mitigation, though this does not replace patching. After upgrading, audit all applications created or modified in versions 2.7.1 and below for <html_rander>-wrapped payloads in the prologue field and remove or sanitize them manually if discovered.
MaxKB prior to version 1.10.8-lts contains an incomplete sandbox implementation that only blacklists binary execution in
Server-side request forgery in MaxKB before 2.10.0 allows any authenticated user holding the default workspace USER role
OS command injection in MaxKB (1Panel-dev's open-source enterprise AI assistant) before 2.10.0-lts lets an authenticated
Authentication bypass in MaxKB (1Panel-dev) versions prior to 2.9.0 allows remote unauthenticated attackers to invoke we
Stored Cross-Site Scripting (XSS) via Eval Injection in MaxKB's Markdown rendering engine allows authenticated users to
Stored Cross-Site Scripting (XSS) in MaxKB 2.7.1 and below allows authenticated users to inject malicious JavaScript thr
MaxKB, an open-source enterprise AI assistant by 1Panel-dev, stores user passwords as unsalted MD5 hashes, exposing all
MaxKB versions 2.7.1 and below allow authenticated users with tool execution privileges to bypass the LD_PRELOAD-based s
MaxKB versions 2.7.1 and below allow authenticated attackers with workspace privileges to execute arbitrary code by expl
Server-side request forgery in MaxKB v2.8.0 and earlier allows authenticated low-privilege users to reach internal netwo
Server-Side Request Forgery in MaxKB before 2.9.1 allows authenticated users to pivot into internal network infrastructu
OS command injection in 1Panel-dev MaxKB up to version 2.6.1 allows authenticated remote attackers to execute arbitrary
Same weakness CWE-80 – Basic XSS
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-22192