# CVE-2026-142222: mcp-documentation-server through 1.15.3 Stored XSS via Document Titles in Web UI

Source: https://aplosec.si/cve/CVE-2026-142222/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142222

Medium 5.3 · Reported · No fix listed · CWE-79 · npm

# mcp-documentation-server through 1.15.3 Stored XSS via Document Titles in Web UI

CVE-2026-142222 · published 2026-12-02

In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). No fixed release is listed yet.

## Summary

CVE-2026-142222 affects mcp-documentation-server (npm) <= 1.15.3: Stored XSS via Document Titles in Web UI (CWE-79). No fixed release is listed. CVSS 4.0 base score 5.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

mcp-documentation-server through 1.15.3 contains a stored cross-site scripting vulnerability that allows attackers to inject script by setting malicious document titles rendered unescaped in src/public/index.html. Attackers can store markup via cross-site POSTs to the unauthenticated /api/documents endpoint or the add_document tool, executing script when users search or view documents to read, add, or delete documents.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/mcp-documentation-server-through-1.15.3-stored-xss-via-document-titles-in-web-ui](https://www.vulncheck.com/advisories/mcp-documentation-server-through-1.15.3-stored-xss-via-document-titles-in-web-ui)

- [Vulnerable codehttps://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L989-L996](https://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L989-L996)

- [Vulnerable codehttps://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L885-L898](https://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L885-L898)

- [Vulnerable codehttps://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L1203-L1206](https://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L1203-L1206)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142222](https://www.cve.org/CVERecord?id=CVE-2026-142222)

**Severity:** Medium 5.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142222)

**Package:** mcp-documentation-server

**Ecosystem:** npm

**Affected:** <= 1.15.3

**Fixed:** None

**Weakness:** CWE-79

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
