This optional server has a serious access-control flaw: it exposes an unauthenticated agent endpoint on all interfaces and defaults to approving tool actions in headless mode. The code establishes a critical vulnerability, though it does not show deliberate malicious behavior.
Static reason
No blocking static signals were detected.; previous stored version diff introduced dangerous source
Trigger
A user starts the server or daemon in a headless environment, then a network client can reach its listener.
Impact
A reachable client can submit agent requests that may execute tools with the server process's permissions and access to its configured project and environment.
Mechanism
The server binds to 0.0.0.0 and exposes POST /v1/messages without an authentication check; headless startup defaults to auto-approval unless CORTEX_HEADLESS_APPROVE=false.
Evidence
dist/index.jsdist/routes/messages.jsdist/middleware/cors.js
Network endpoints3
0.0.0.0:PORT (PORT defaults to 4000)POST /v1/messagesPOST /shutdown