{"id":"CVE-2026-76893","aliases":["EUVD-2026-117156","GHSA-h7c4-q426-7jh9"],"status":"published","title":"tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients","description":"tsParticles is a TypeScript library for creating highly customizable particle animations. Prior to 4.3.2, the HTTP mode of @tsparticles/mcp-server reuses one stateful StreamableHTTPServerTransport for every client. An unauthenticated client that sends the first initialize request without an mcp-session-id claims the shared transport state, causing later independent clients to receive Server already initialized and preventing them from establishing sessions until the process restarts. The first client's session remains functional. This issue is fixed in version 4.3.2.","severity":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00291,"percentile":0.21916,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2026-11-04T22:10:24.167Z","modified":"2026-11-09T21:30:07Z","fixes":[{"ecosystem":"npm","package":"@tsparticles/mcp-server","fixed_in":["4.3.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@tsparticles/mcp-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.2"}]}]},{"source":"osv","ecosystem":"npm","package":"@tsparticles/mcp-server","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.3.2"}]}]}],"products":[{"vendor":"@contentful","product":"mcp-server"},{"vendor":"@tsparticles","product":"mcp-server"},{"vendor":"tsparticles","product":"tsparticles"}],"references":[{"url":"https://github.com/tsparticles/tsparticles/security/advisories/GHSA-h7c4-q426-7jh9","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/tsparticles/tsparticles/pull/5888","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/tsparticles/tsparticles/commit/d3b5672bd61bb847abfa21193c34eabf7aba6896","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76893","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-h7c4-q426-7jh9"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76893.json","tags":["advisory"]},{"url":"https://github.com/tsparticles/tsparticles","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-76893","title":"tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients","description":"tsParticles is a TypeScript library for creating highly customizable particle animations. Prior to 4.3.2, the HTTP mode of @tsparticles/mcp-server reuses one stateful StreamableHTTPServerTransport for every client. An unauthenticated client that sends the first initialize request without an mcp-session-id claims the shared transport state, causing later independent clients to receive Server already initialized and preventing them from establishing sessions until the process restarts. The first client's session remains functional. This issue is fixed in version 4.3.2.","status":"published","published":"2026-11-04T22:10:24.167Z","modified":"2026-11-05T20:20:55.808Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","level":"medium","assessor":"cna"}],"cwes":["CWE-400"],"updated_at":"2026-11-05T21:25:06.152449Z"}],"euvd":[{"id":"EUVD-2026-117156","description":"tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients","status":"published","published":"2026-11-09T21:14:51Z","modified":"2026-11-09T21:14:51Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"updated_at":"2026-11-09T22:18:21.405141Z"}],"ghsa":[{"id":"GHSA-h7c4-q426-7jh9","title":"tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients","description":"## Summary\n\nThe HTTP mode of `@tsparticles/mcp-server` creates a single stateful `StreamableHTTPServerTransport` instance and reuses it for all clients. The first anonymous client that initializes the MCP endpoint claims the shared transport state, and later clients cannot create their own sessions.\n\nThis was verified on `v4.3.0` at commit `0266d469aa2d719cb66a9c6bf09aded4186ec17c`. The same singleton transport pattern is still present in `v4.3.1` and current `main`.\n\n## Affected Code\n\nThe server creates one shared transport before accepting requests:\n\n    const transport = new StreamableHTTPServerTransport({\n      sessionIdGenerator: () =\u003e randomUUID(),\n    });\n\n    const httpServer = createServer(async (req, res) =\u003e {\n      ...\n      await transport.handleRequest(req, res, parsedBody);\n    });\n\nBecause the same transport object is reused across all requests, the first successful `initialize` call changes the state for all later clients.\n\n## Reproduction\n\nSend two independent `initialize` requests without a prior `mcp-session-id`.\n\nFirst request:\n\n    {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-11-25\",\"capabilities\":{},\"clientInfo\":{\"name\":\"first-client\",\"version\":\"1.0.0\"}}}\n\nSecond request:\n\n    {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-11-25\",\"capabilities\":{},\"clientInfo\":{\"name\":\"second-client\",\"version\":\"1.0.0\"}}}\n\nObserved result in 3 out of 3 runs:\n\n    first response: HTTP 200 with mcp-session-id\n    second response: HTTP 400\n    {\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32600,\"message\":\"Invalid Request: Server already initialized\"},\"id\":null}\n\n## Impact\n\nAn unauthenticated remote client can win the first-session race and prevent all later legitimate clients from establishing new MCP sessions until the process is restarted. The first session remains functional, but new clients are denied service.\n\n## Recommendation\n\nCreate a transport per session or maintain a bounded session-id-to-transport map. Do not reuse one stateful transport instance for all HTTP clients.","status":"published","published":"2026-11-09T21:14:51Z","modified":"2026-11-09T21:14:52Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-09T21:19:53.571625Z"}],"nvd":[{"id":"CVE-2026-76893","description":"tsParticles is a TypeScript library for creating highly customizable particle animations. Prior to 4.3.2, the HTTP mode of @tsparticles/mcp-server reuses one stateful StreamableHTTPServerTransport for every client. An unauthenticated client that sends the first initialize request without an mcp-session-id claims the shared transport state, causing later independent clients to receive Server already initialized and preventing them from establishing sessions until the process restarts. The first client's session remains functional. This issue is fixed in version 4.3.2.","status":"published","published":"2026-11-04T22:18:07.53Z","modified":"2026-11-06T21:32:18.733Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"}],"cwes":["CWE-400"],"updated_at":"2026-11-07T00:02:36.119898Z"}],"osv":[{"id":"CVE-2026-76893","title":"tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients","description":"tsParticles is a TypeScript library for creating highly customizable particle animations. Prior to 4.3.2, the HTTP mode of @tsparticles/mcp-server reuses one stateful StreamableHTTPServerTransport for every client. An unauthenticated client that sends the first initialize request without an mcp-session-id claims the shared transport state, causing later independent clients to receive Server already initialized and preventing them from establishing sessions until the process restarts. The first client's session remains functional. This issue is fixed in version 4.3.2.","status":"published","published":"2026-11-04T22:10:24.167Z","modified":"2026-11-08T02:31:07.897939667Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-07T03:08:10.477794Z"},{"id":"GHSA-h7c4-q426-7jh9","title":"tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients","description":"## Summary\n\nThe HTTP mode of `@tsparticles/mcp-server` creates a single stateful `StreamableHTTPServerTransport` instance and reuses it for all clients. The first anonymous client that initializes the MCP endpoint claims the shared transport state, and later clients cannot create their own sessions.\n\nThis was verified on `v4.3.0` at commit `0266d469aa2d719cb66a9c6bf09aded4186ec17c`. The same singleton transport pattern is still present in `v4.3.1` and current `main`.\n\n## Affected Code\n\nThe server creates one shared transport before accepting requests:\n\n    const transport = new StreamableHTTPServerTransport({\n      sessionIdGenerator: () =\u003e randomUUID(),\n    });\n\n    const httpServer = createServer(async (req, res) =\u003e {\n      ...\n      await transport.handleRequest(req, res, parsedBody);\n    });\n\nBecause the same transport object is reused across all requests, the first successful `initialize` call changes the state for all later clients.\n\n## Reproduction\n\nSend two independent `initialize` requests without a prior `mcp-session-id`.\n\nFirst request:\n\n    {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-11-25\",\"capabilities\":{},\"clientInfo\":{\"name\":\"first-client\",\"version\":\"1.0.0\"}}}\n\nSecond request:\n\n    {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-11-25\",\"capabilities\":{},\"clientInfo\":{\"name\":\"second-client\",\"version\":\"1.0.0\"}}}\n\nObserved result in 3 out of 3 runs:\n\n    first response: HTTP 200 with mcp-session-id\n    second response: HTTP 400\n    {\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32600,\"message\":\"Invalid Request: Server already initialized\"},\"id\":null}\n\n## Impact\n\nAn unauthenticated remote client can win the first-session race and prevent all later legitimate clients from establishing new MCP sessions until the process is restarted. The first session remains functional, but new clients are denied service.\n\n## Recommendation\n\nCreate a transport per session or maintain a bounded session-id-to-transport map. Do not reuse one stateful transport instance for all HTTP clients.","status":"published","published":"2026-11-09T21:14:51Z","modified":"2026-11-09T21:30:07.597802769Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-09T21:40:33.762141Z"}]}}
