{"id":"CVE-2026-63378","summary":"TAKO AI Agent for Okta: Authenticated Python execution through validator bypass","details":"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=\u003cid\u003e`. 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.","aliases":["GHSA-r9q7-6784-7rc6"],"modified":"2026-11-01T02:47:26.972395203Z","published":"2026-10-30T22:19:39.743Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63378.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-94"]},"references":[{"type":"WEB","url":"https://github.com/fctr-id/okta-ai-agent/releases/tag/v3.0.1-beta"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63378.json"},{"type":"ADVISORY","url":"https://github.com/fctr-id/okta-ai-agent/security/advisories/GHSA-r9q7-6784-7rc6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63378"},{"type":"FIX","url":"https://github.com/fctr-id/okta-ai-agent/commit/3b5ccaff8423cdfa6d26f5e133c01b8b71148df4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fctr-id/okta-ai-agent","events":[{"introduced":"0"},{"fixed":"bb38dafbce6a3ebb40ba90545428798a3607d341"},{"fixed":"3b5ccaff8423cdfa6d26f5e133c01b8b71148df4"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"3.0.1-beta"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"3b5ccaff8423cdfa6d26f5e133c01b8b71148df4"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"v3.0.1-beta","range":[{"fixed":"bb38dafbce6a3ebb40ba90545428798a3607d341"}]}]}}],"versions":["v3.0-beta","v2.2-beta","v2.1.1","v2.0.5-beta","v2.0.0-beta","v1.5.0-beta","v1.3.0-beta","v1.2.0-beta","v1.1.4-beta","v1.1.3-beta","v1.1.2-beta","v1.1.1-beta","v1.1.0-beta","v1.0.0-beta","0.6.1-beta"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63378.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}