CVE-2026-142222: mcp-documentation-server through 1.15.3 Stored XSS via Document Titles in Web UI
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 adddocument tool, executing script when users search or view documents to read, add, or delete documents.
Affected Software
Event History
Frequently Asked Questions
Who can inject a malicious document title?
Any attacker able to send a cross-site POST to the unauthenticated /api/documents endpoint can store malicious markup. The add_document tool can also be used to add a crafted title.
When does the stored script execute?
The script executes when a user searches for or views documents in the web UI. Users performing document read, add, or delete activities may therefore trigger the payload.
Are unauthenticated deployments exposed by default?
The affected document-creation endpoint is described as unauthenticated, so an attacker does not need credentials to store a malicious title through /api/documents. Exploitation still requires a user to interact with the web UI in a way that renders the title.