CVE Catalog

CVE-2026-39422

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.22%

12th percentile - higher than 12% of all known CVEs

Summary

MaxKB versions 2.7.1 and below contain a stored 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}), 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.

Risk Assessment

Stored XSS may lead to session hijacking of users visiting the public chat, cookie theft, and potential privilege escalation. It affects all users of the public chat interface.

Recommendation

Update MaxKB to version 2.8.0 or later. Additionally, consider implementing a Content Security Policy and output escaping in ChatHeadersMiddleware.

Other vulnerabilities in MaxKB

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS