# CVE-2026-63378 - TAKO AI Agent for Okta: Authenticated Python execution through validator bypass

DevFeed: [CVE-2026-63378 - TAKO AI Agent for Okta: Authenticated Python execution through validator bypass](<https://devfeed.tech/articles/cve-2026-63378-tako-ai-agent-for-okta-authenticated-python-execution-through-validator-bypass-109484.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-63378>)

Author: CVEFEED.io; github.com

Published: 2026-10-30T23:17:14Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [okta](<https://devfeed.tech/topics/okta.md>), [import](<https://devfeed.tech/topics/import.md>)

Tags: [administrator](<https://devfeed.tech/tags/administrator.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [api](<https://devfeed.tech/tags/api.md>), [application](<https://devfeed.tech/tags/application.md>), [ast](<https://devfeed.tech/tags/ast.md>), [backend](<https://devfeed.tech/tags/backend.md>), [bypass](<https://devfeed.tech/tags/bypass.md>), [code](<https://devfeed.tech/tags/code.md>), [command](<https://devfeed.tech/tags/command.md>), [compromise](<https://devfeed.tech/tags/compromise.md>), [container](<https://devfeed.tech/tags/container.md>), [content](<https://devfeed.tech/tags/content.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-63378](<https://devfeed.tech/tags/cve-2026-63378.md>), [database](<https://devfeed.tech/tags/database.md>), [execution](<https://devfeed.tech/tags/execution.md>), [okta](<https://devfeed.tech/tags/okta.md>), [python](<https://devfeed.tech/tags/python.md>)

## AI overview

Before 3.0.1-beta, any user with a valid `fctr_session` cookie could submit arbitrary Python through `POST /api/react/execute-script` without administrator privileges. The request bypasses AI content filtering, and validator gaps around dynamic `getattr` calls through `__builtins__` allow the code through. TAKO writes the accepted script to disk and executes it as the application user, root in the default container; command output is streamed back over Server-Sent Events. A compromise could expose environment secrets such as Okta API tokens and the JWT key, reveal the SQLite database, and enable pivoting to backend services or persistence. The issue is fixed in 3.0.1-beta.

## Source excerpt

CVE ID :CVE-2026-63378 Published : Oct. 30, 2026, 11:17 p.m. | 39 minutes ago Description :TAKO AI Agent for Okta is a local-first AI agent that helps Okta administrators query tenant data using natural language. Prior to 3.0.1-beta, any authenticated user with a valid `fctr_session` cookie can submit arbitrary Python source in the `script_code` field of `POST /api/react/execute-script`, without administrator privilege. In `src/api/routers/react_stream.py`, the source is stored with `skip_discovery=True`, bypassing AI-based content filtering, and is passed to `validate_generated_code` in `src/utils/security_config.py`. `BLOCKED_PATTERNS` recognizes direct `__import__` calls but misses the import name passed as a string, `getattr` is in `ALLOWED_BUILTINS`, and the AST checker handles `ast.Name` and `ast.Attribute` targets but fails to handle `ast.Call` targets. Dynamic `getattr` call chains through `__builtins__` therefore evade validation. The `_write_temp_script` helper writes the accepted code to disk, and `asyncio.create_subprocess_exec()` executes it as the application process user, which is root in the default container. Command output is returned as Server-Sent Events through `GET /api/react/stream-react-updates?process_id=`. The resulting container compromise can disclose environment secrets including Okta API tokens and the JWT key, expose the SQLite database, and permit backend-service pivoting and persistence. This issue is fixed in version 3.0.1-beta. Severity: 8.8 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...