tsParticles の MCP サーバーに不正なJSONを送られるとサービスが停止する脆弱性
Summary
tsParticles の @tsparticles/mcp-server では、HTTPモードでPOST /mcpに不正な形式のJSONを送ると、Node.jsプロセスが終了し、MCPサービスが利用できなくなります。認証は不要で、外部の監視ツールによる再起動があるまで停止したままになるおそれがあります。4.3.1より前の版が対象で、修正版の4.3.1で対応しています。早めに修正版へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
tsParticles の @tsparticles/mcp-server では、HTTPモードでPOST /mcpに不正な形式のJSONを送ると、Node.jsプロセスが終了し、MCPサービスが利用できなくなります。認証は不要で、外部の監視ツールによる再起動があるまで停止したままになるおそれがあります。4.3.1より前の版が対象で、修正版の4.3.1で対応しています。早めに修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| tsparticlestsparticles | — | Not listed |
| @tsparticlesmcp-server | — | Not listed |
| npm@tsparticles/mcp-server |
< 4.3.1→ 4.3.1 |
4.3.1 |
Original description The description as published by the source.
Summary
The 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.
This was verified on v4.3.0 at commit 0266d469aa2d719cb66a9c6bf09aded4186ec17c. Version 4.3.1 appears to fix this by returning HTTP 400 for invalid JSON.
Affected Code
The vulnerable handler is:
if (req.method === "POST" && req.url === "/mcp") {
const body = await new Promise((resolve, reject) => {
const chunks: Buffer[] = [];
req.on("data", (chunk) => chunks.push(Buffer.from(chunk)));
req.on("end", () => resolve(Buffer.concat(chunks).toString("utf8")));
req.on("error", reject);
});
const parsedBody = body ? JSON.parse(body) : undefined;
await transport.handleRequest(req, res, parsedBody);
}
The JSON.parse() call is not wrapped in try/catch.
Reproduction
Start the HTTP server and send this malformed request:
POST /mcp HTTP/1.1
Content-Type: application/json
Mcp-Protocol-Version: 2025-11-25
{"jsonrpc":
Observed result in 3 out of 3 runs:
exit_code=1
SyntaxError: Unexpected end of JSON input
at Server. (integrations/mcp-server/src/index.ts:407:38)
Impact
An unauthenticated remote attacker can terminate the exposed MCP process with a single malformed request. The service remains unavailable until r…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com