CVE-2026-39426
JSON

5.1medium

MaxKB: Stored XSS via Unsanitized iframe_render Parsing

Severity
5.1medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.20% (higher than 10% 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 where the frontend's MdRenderer.vue component parses custom <iframe_render> tags from LLM responses or Application Prologue configurations, bypassing standard Markdown sanitization and XSS filtering. The unsanitized HTML content is passed to the IframeRender.vue component, which renders it directly into an <iframe> via the srcdoc attribute configured with sandbox="allow-scripts allow-same-origin". This can be a dangerous combination, allowing injected scripts to escape the iframe and execute JavaScript in the parent window using window.parent. Since the Prologue is rendered for any user visiting an application's chat interface, this results in a high-impact Stored XSS that can lead to session hijacking, unauthorized actions, and sensitive data exposure. This issue has been fixed in version 2.8.0.

Affected

Product or packageVersionsReported by
1Panel-dev MaxKB< 2.8.0CVE List
maxkb maxkbbefore 2.8.0NVD

All scores

GitHub_M5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

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 where the frontend's MdRenderer.vue component parses custom <iframe_render> tags from LLM responses or Application Prologue configurations, bypassing standard Markdown sanitization and XSS filtering. The unsanitized HTML content is passed to the IframeRender.vue component, which renders it directly into an <iframe> via the srcdoc attribute configured with sandbox="allow-scripts allow-same-origin". This can be a dangerous combination, allowing injected scripts to escape the iframe and execute JavaScript in the parent window using window.parent. Since the Prologue is rendered for any user visiting an application's chat interface, this results in a high-impact Stored XSS that can lead to session hijacking, unauthorized actions, 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 y anteriores contienen una vulnerabilidad de Stored Cross-Site Scripting (XSS) donde el componente MdRenderer.vue del frontend analiza etiquetas personalizadas [iframe_tag] de respuestas de LLM o configuraciones de Application Prologue, omitiendo la sanitización estándar de Markdown y el filtrado de XSS. El contenido HTML no sanitizado se pasa al componente IframeRender.vue, que lo renderiza directamente en un [iframe_tag] a través del atributo srcdoc configurado con sandbox=“allow-scripts allow-same-origin”. Esto puede ser una combinación peligrosa, permitiendo que los scripts inyectados escapen del iframe y ejecuten JavaScript en la ventana padre usando window.parent. Dado que el Prólogo se renderiza para cualquier usuario que visita la interfaz de chat de una aplicación, esto resulta en un Stored XSS de alto impacto que puede llevar al secuestro de sesión, acciones no autorizadas y exposición de datos sensibles. Este problema ha sido solucionado en la versión 2.8.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39426 changed 2026-04-16CVE Terms of Use
NVDCVE-2026-39426 changed 2026-10-26Public domain