@openai/codex is vulnerable to Improper Authorization
52
CVE Score
Medium
Improper Authorization
Codex's TUI accepts McpServerStatusUpdated notifications from any thread without checking whether the current session actually owns that thread. An unrelated or unauthorized sub-agent thread's MCP status notification can register as known, letting a subsequent approval request from that thread surface and be accepted in the current session. This can present a user with an approval prompt for an action under a thread other than the one they believe they are reviewing. The fix centralizes thread-ownership checks and resolves a notification's parent thread before granting it routing trust.
Upgrade the @openai/codex and/or the @openai/codex-sdk library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you use Codex's sub-agent or multi-thread TUI features with MCP servers.
0.149.0 - 0.161.0
Fixed in 0.162.0@openai/codex is vulnerable to Improper Authorization in versions 0.149.0 - 0.161.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.