Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

southleft/figma-console-mcp
main @ e8a9dc1
5
Fixes
0
CVEs
HIGH
Peak severity
80.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
src/core/figjam-tools.ts: most-fixed (2 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Code Injection: Manual escaping and string interpolation of parameters into evaluated code strings allowed arbitrary JavaScript execution in FigJam tools. Subsequent fixes replaced this behavior with direct JSON.stringify/JSON.parse blocks and strict input boundary validation.
Cross-Site WebSocket Hijacking: The local MCP WebSocket server failed to validate the Origin header during the connection handshake, leaving it open to Cross-Site WebSocket Hijacking (CSWSH) from malicious origins running in a user's browser.
Denial of Service: Stale server processes could hang during shutdown operations and indefinitely bind to local TCP ports, causing denial of service for subsequent server instantiations. This was mitigated by enforcing read deadlines before the handshake.