criticalZero-Day

Taipy Socket.IO CORS Misconfiguration Enabling Cross-Origin CSRF and State Manipulation

First seen Sep 5, 2026 · Updated Sep 5, 2026 · CVSS 9.3

CORS-misconfigurationCSRFwebsocketsocket.iotaipyagent-relevantpythonunauthenticated-accessstate-manipulation

Taipy, a Python framework used to build data and AI application front-ends, ships with a Socket.IO server configuration that combines wildcard CORS origins with credentialed connections enabled. This allows any malicious webpage to establish authenticated WebSocket sessions with a victim's running Taipy application and directly invoke state changes and backend callbacks without CSRF protection, effectively granting remote attackers unauthorized control over application logic and data.

Technical Analysis

The vulnerability stems from Taipy's Socket.IO server being configured with `cors_allowed_origins='*'` while simultaneously permitting credentialed connections (cookies/session tokens), a combination that violates standard CORS security guidance and defeats same-origin protections. An attacker can host a malicious webpage that, when visited by a victim with an active session, silently opens a Socket.IO WebSocket connection to the target Taipy backend and emits events that trigger state variable mutations and registered action callbacks server-side. Because there is no CSRF token, origin validation, or same-site cookie enforcement on the WebSocket handshake, this effectively allows full remote invocation of application logic as the victim user. Taipy is increasingly used to build interactive front-ends and dashboards for LLM-powered and RAG-based applications, meaning agent orchestration state, prompt configurations, retrieved data, or tool-invocation triggers exposed via Taipy callbacks could be manipulated by an unauthenticated third party, potentially leading to data exfiltration, unauthorized tool execution, or corruption of agent decision state.

Affected Systems

Taipy framework (all versions prior to patched release) using default or wildcard Socket.IO CORS configuration with credentials enabled; any Taipy-based web application, dashboard, or agent front-end exposing Socket.IO endpoints to the public internet or internal networks accessible to untrusted users.

Indicators of Compromise

  • N/A - configuration vulnerability, no known malware artifacts
  • Monitor for: unexpected Socket.IO connections from unfamiliar Origin headers
  • Monitor for: anomalous state-variable update events or callback invocations from unrecognized client sessions

Remediation Steps

  1. 1

    Restrict CORS origins

    Configure Taipy's Socket.IO server with an explicit allow-list of trusted origins instead of a wildcard ('*') value.

  2. 2

    Disable credentials with wildcard origins

    Never combine cors_allowed_origins='*' with credentialed connections; if credentials are required, enforce a strict origin allow-list.

  3. 3

    Implement CSRF protections

    Add anti-CSRF tokens or origin/referrer validation checks on WebSocket handshake and event handlers to prevent unauthorized cross-origin invocation.

  4. 4

    Upgrade Taipy

    Apply the vendor patch or update to the fixed Taipy release once available, per official advisory.

  5. 5

    Network segmentation

    Restrict access to Taipy application endpoints via firewall rules, VPN, or reverse proxy authentication for internal-only deployments, especially those backing AI agent or RAG pipelines.

  6. 6

    Session and cookie hardening

    Set SameSite=Strict or Lax on session cookies to reduce cross-origin request risk pending patch deployment.

CVE / Advisory IDs

CVE-2026-85183

Industries Most Exposed

technologysoftware developmentdata analyticsAI/ML servicesfinancehealthcareany organization deploying Taipy-based internal or public dashboards

Sources

Respond to this threat

Pro subscribers get a full AI-generated incident-response playbook for this threat — detection, containment, eradication, and recovery steps — plus an unlimited AI Threat Advisor for questions about your environment.