{"id":"GHSA-4p8p-pjpq-2w7h","revision":"296059c4d732462f9ef30b54616f0252","records":[{"revision":"296059c4d732462f9ef30b54616f0252","observedAt":"2026-11-09T22:02:23.304+00:00","statement":{"source":"osv","id":"GHSA-4p8p-pjpq-2w7h","aliases":["CVE-2026-76892"],"title":"tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process","description":"## 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.","state":0,"publishedAt":"2026-11-09T21:13:55+00:00","modifiedAt":"2026-11-09T21:30:07.5852688+00:00","affected":[{"ecosystem":"npm","name":"@tsparticles/mcp-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.3.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/tsparticles/tsparticles/security/advisories/GHSA-4p8p-pjpq-2w7h","https://nvd.nist.gov/vuln/detail/CVE-2026-76892","https://github.com/tsparticles/tsparticles/pull/5875","https://github.com/tsparticles/tsparticles/commit/25fb70e7f527a91568adaef576570289083f243b","https://github.com/tsparticles/tsparticles"],"sourceUrl":"https://github.com/advisories/GHSA-4p8p-pjpq-2w7h","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4p8p-pjpq-2w7h","identifiers":["GHSA-4p8p-pjpq-2w7h","CVE-2026-76892"]},"retained":false,"historicalAffected":[]}],"coverage":[]}