Severity by source
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
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 through the application name or icon fields when creating an application. When a victim visits the public chat interface (/ui/chat/{access_token}), the ChatHeadersMiddleware retrieves the 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. This issue has been fixed in version 2.8.0.
AnalysisAI
Stored Cross-Site Scripting (XSS) in MaxKB 2.7.1 and below allows authenticated users to inject malicious JavaScript through application name or icon fields, which is then executed in victims' browsers when accessing the public chat interface. The vulnerability stems from unsanitized data insertion into HTML responses by ChatHeadersMiddleware, enabling arbitrary code execution with user interaction. MaxKB 2.8.0 has released a patch to fix this issue.
Technical ContextAI
MaxKB is an open-source AI assistant framework that manages applications with public chat interfaces. The vulnerability exists in the ChatHeadersMiddleware component, which retrieves application metadata (name and icon fields) from storage and directly inserts them into HTML responses via string replacement without HTML escaping or sanitization. This represents a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) issue where user-controlled input from application configuration is rendered as HTML without proper encoding. The attack surface includes the /ui/chat/{access_token} endpoint, a publicly accessible endpoint that dynamically loads application data. An authenticated attacker with application creation privileges can craft payloads containing JavaScript code (e.g., <script> tags, event handlers) in the application name or icon field; when any victim visits the chat interface, their browser executes this injected script in the context of the application domain.
RemediationAI
Vendor-released patch: MaxKB 2.8.0. Upgrade immediately to version 2.8.0 or later from https://github.com/1Panel-dev/MaxKB/releases/tag/v2.8.0. For organizations unable to upgrade immediately, implement HTML escaping or Content Security Policy (CSP) headers to mitigate stored XSS risk, though these are temporary measures and patching is mandatory. Audit existing MaxKB instances for applications with suspicious names or icon URLs created by untrusted users and remove or sanitize them. Refer to the vendor security advisory at https://github.com/1Panel-dev/MaxKB/security/advisories/GHSA-wf7p-3jq5-q52w for detailed mitigation guidance.
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
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
Cross-site scripting (XSS) in 1Panel-dev MaxKB up to version 2.4.2 allows authenticated remote attackers to inject malic
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-22182