5.1medium
MaxKB: Stored XSS via Unsanitized html_rander Tags in Markdown Rendering
- Severity
- 5.1medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.19% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 1Panel-dev MaxKB | < 2.8.0 | CVE List |
| maxkb maxkb | before 2.8.0 | NVD |
All scores
| GitHub_M | 5.1medium CVSS:4.0 | 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 |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
MaxKB es un asistente de IA de código abierto para empresas. Las versiones 2.7.1 e inferiores contienen una vulnerabilidad de cross-site scripting (XSS) almacenado que permite a los usuarios autenticados inyectar HTML y JavaScript arbitrarios en el campo de prólogo de la aplicación (Observaciones iniciales) al envolver cargas útiles maliciosas en etiquetas [html_rander]. El backend no logra sanear o codificar entidades HTML en el campo de prólogo cuando las aplicaciones son creadas o actualizadas a través del endpoint /admin/api/workspace/{workspace_id}/application, almacenando la carga útil sin procesar directamente en la base de datos. El frontend luego renderiza este contenido usando un mecanismo equivalente a innerHTML, confiando en que el contenido envuelto en [html_rander] es seguro, lo que permite la ejecución persistente de XSS almacenado basado en DOM contra cualquier visitante que abra la interfaz del chatbot afectada. La explotación puede llevar al secuestro de sesión, acciones no autorizadas realizadas en nombre de las víctimas (como eliminar espacios de trabajo o aplicaciones) y la exposición de datos sensibles. Este problema ha sido solucionado en la versión 2.8.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39425 changed 2026-04-14 | CVE Terms of Use |
| NVD | CVE-2026-39425 changed 2026-10-26 | Public domain |