Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →SelectedAttention33

@tsparticles/mcp-server: a single anonymous MCP session can monopolize HTTP mode; fixed in 4.3.2

tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients

AI summary

Versions of @tsparticles/mcp-server prior to 4.3.2 reuse the same stateful StreamableHTTPServerTransport instance in HTTP mode; the first anonymous client to complete initialize occupies the shared session state, and subsequent new clients receive an HTTP 400 error and cannot establish their own MCP session until the process restarts. The discloser reproduced this 3 times on v4.3.0 (commit 0266d469aa2d719cb66a9c6bf09aded4186ec17c) with two independent initialize requests, and each time the first request returned 200 with an mcp-session-id and the second request returned Invalid Request: Server already initialized. The advisory states that v4.3.1 and the main branch at the time still had the same singleton transport pattern.

Why it was selected

The advisory provides a reproducible request sequence and affected versions, which teams deploying MCP services can use to check whether their transport layer reuses singleton state.

Read originalgithub.com