{"id":"CVE-2026-76892","aliases":["CVE-2026-76892","GHSA-4p8p-pjpq-2w7h"],"related":[],"kind":"vulnerability","state":"published","title":"tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process","summary":"tsParticles is a TypeScript library for creating highly customizable particle animations. Prior to 4.3.1, the HTTP mode of @tsparticles/mcp-server calls JSON.parse outside a request-local error boundary in the POST /mcp handler in integrations/mcp-server/src/index.ts. A single unauthenticated malformed JSON body raises a SyntaxError that terminates the Node.js process, leaving the MCP service unavailable until an external supervisor restarts it. This issue is fixed in version 4.3.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"tsParticles is a TypeScript library for creating highly customizable particle animations. Prior to 4.3.1, the HTTP mode of @tsparticles/mcp-server calls JSON.parse outside a request-local error boundary in the POST /mcp handler in integrations/mcp-server/src/index.ts. A single unauthenticated malformed JSON body raises a SyntaxError that terminates the Node.js process, leaving the MCP service unavailable until an external supervisor restarts it. This issue is fixed in version 4.3.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe HTTP mode of `@tsparticles/mcp-server` parses incoming `/mcp` request bodies with `JSON.parse()` outside a request-local error boundary. A single malformed JSON request causes the async request handler to throw and terminates the Node.js process.\n\nThis was verified on `v4.3.0` at commit `0266d469aa2d719cb66a9c6bf09aded4186ec17c`. Version `4.3.1` appears to fix this by returning HTTP 400 for invalid JSON.\n\n## Affected Code\n\nThe vulnerable handler is:\n\n    if (req.method === \"POST\" && req.url === \"/mcp\") {\n      const body = await new Promise<string>((resolve, reject) => {\n        const chunks: Buffer[] = [];\n        req.on(\"data\", (chunk) => chunks.push(Buffer.from(chunk)));\n        req.on(\"end\", () => resolve(Buffer.concat(chunks).toString(\"utf8\")));\n        req.on(\"error\", reject);\n      });\n\n      const parsedBody = body ? JSON.parse(body) : undefined;\n      await transport.handleRequest(req, res, parsedBody);\n    }\n\nThe `JSON.parse()` call is not wrapped in `try/catch`.\n\n## Reproduction\n\nStart the HTTP server and send this malformed request:\n\n    POST /mcp HTTP/1.1\n    Content-Type: application/json\n    Mcp-Protocol-Version: 2025-11-25\n\n    {\"jsonrpc\":\n\nObserved result in 3 out of 3 runs:\n\n    exit_code=1\n    SyntaxError: Unexpected end of JSON input\n    at Server.<anonymous> (integrations/mcp-server/src/index.ts:407:38)\n\n## Impact\n\nAn unauthenticated remote attacker can terminate the exposed MCP process with a single malformed request. The service remains unavailable until restarted by an external supervisor.\n\n## Recommendation\n\nWrap request parsing in a local `try/catch` and return a bounded HTTP 400 response such as:\n\n    {\"error\":\"Invalid JSON\"}\n\nThe process should remain alive after malformed requests.","format":"markdown","source":"ghsa"}],"published":"2026-11-04T22:14:13.918Z","modified":"2026-11-09T21:30:07.585Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":"< 4.3.1","status":"affected"}],"vendor":"tsparticles","product":"tsparticles","source":"cvelist"},{"ranges":[{"version":"< 4.3.1","status":"affected"}],"vendor":"@tsparticles","product":"mcp-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.3.1"}],"ecosystem":"npm","package":"@tsparticles/mcp-server","purl":"pkg:npm/%40tsparticles/mcp-server","source":"ghsa"}],"references":[{"url":"https://github.com/tsparticles/tsparticles/security/advisories/GHSA-4p8p-pjpq-2w7h","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tsparticles/tsparticles/pull/5875","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tsparticles/tsparticles/commit/25fb70e7f527a91568adaef576570289083f243b","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76892","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tsparticles/tsparticles","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-11-05T20:24:21.547Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-76892","url":"https://www.cve.org/CVERecord?id=CVE-2026-76892","licence":"CVE Terms of Use","modified":"2026-11-05T20:25:01.240Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4p8p-pjpq-2w7h","url":"https://github.com/advisories/GHSA-4p8p-pjpq-2w7h","licence":"CC-BY-4.0","modified":"2026-11-09T21:30:07.585Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-76892","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76892","licence":"Public domain","modified":"2026-11-06T21:32:18.733Z"}],"updatedAt":"2026-11-25T22:59:49.063Z","epss":{"score":0.00472,"percentile":0.42451,"date":"2026-12-01T12:00:22.000Z"}}