# CVE-2026-39422: MaxKB has Stored XSS via ChatHeadersMiddleware

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T00:22:50.958Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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 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.

(As written by CVE List.)

## Affected

- 1Panel-dev MaxKB: < 2.8.0
- maxkb maxkb: before 2.8.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/1Panel-dev/MaxKB/security/advisories/GHSA-wf7p-3jq5-q52w> (exploit, vendor-advisory)
- <https://github.com/1Panel-dev/MaxKB/commit/026a2d623e2aa5efa67c4834651e79d5d7cab1da> (patch)
- <https://github.com/1Panel-dev/MaxKB/releases/tag/v2.8.0> (release-notes)

## Sources

- CVE List: [CVE-2026-39422](https://www.cve.org/CVERecord?id=CVE-2026-39422), CVE Terms of Use, modified 2026-04-14
- NVD: [CVE-2026-39422](https://nvd.nist.gov/vuln/detail/CVE-2026-39422), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39422 · Whole record: https://cve.day/CVE-2026-39422.json · Rebuilt by cve.day 2026-11-25T22:59:18.664Z
