{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "1.15.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "16db2742ab872774a6f055c87fbc57579b4312ff"
            }
          ],
          "repo": "https://github.com/andrea9293/mcp-documentation-server",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142222.json"
  },
  "details": "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.",
  "id": "CVE-2026-142222",
  "modified": "2026-12-02T20:45:48.172977308Z",
  "published": "2026-12-02T16:50:23.159Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142222.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/andrea9293/mcp-documentation-server"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L1203-L1206"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L885-L898"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/andrea9293/mcp-documentation-server/blob/v1.15.3/src/public/index.html#L989-L996"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142222"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/mcp-documentation-server-through-1.15.3-stored-xss-via-document-titles-in-web-ui"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "mcp-documentation-server through 1.15.3 Stored XSS via Document Titles in Web UI"
}