{"id":42180,"date":"2026-10-16T12:37:30","date_gmt":"2026-10-16T10:37:30","guid":{"rendered":"https:\/\/www.mixtv1.com\/index.php\/2026\/10\/16\/codex-told-your-dns-server-the-names-of-the-hosts-its-proxy-then-blocked\/"},"modified":"2026-10-16T12:40:12","modified_gmt":"2026-10-16T10:40:12","slug":"how-codex-hijacked-your-dns-to-block-your-traffic","status":"publish","type":"post","link":"https:\/\/www.mixtv1.com\/index.php\/2026\/10\/16\/how-codex-hijacked-your-dns-to-block-your-traffic\/","title":{"rendered":"How Codex Hijacked Your DNS to Block Your Traffic"},"content":{"rendered":"<p>### Security Patch Addresses DNS Leak Vulnerability in Codex CLI<\/p>\n<p>A recent security update for the OpenAI Codex command-line interface has corrected a significant privacy flaw involving how the tool handles network requests. Prior to this patch, the proxy mechanism would initiate a DNS resolution process for a hostname before verifying if that specific host was permitted. Consequently, even if the proxy eventually blocked the connection, the request had already been broadcast to the DNS provider, potentially exposing internal or sensitive hostnames to third-party infrastructure.<\/p>\n<p>#### Strengthening the Permission Workflow<br \/>\nThe release of Codex CLI version 0.163.0, which arrived on October 15, introduces a more rigorous security posture. According to the <a href=\"https:\/\/learn.chatgpt.com\/docs\/changelog\" target=\"_blank\" rel=\"noopener\">OpenAI\u2019s changelog<\/a>, the software now mandates a permission check prior to any DNS lookup. Furthermore, the update includes safeguards against duplicate Host headers and closes loopholes that previously allowed credential aliases to circumvent established inspection hooks.<\/p>\n<p>#### Technical Implications of the Fix<br \/>\nThe underlying issue was more severe than a simple logic error. Documentation from the <a href=\"https:\/\/github.com\/openai\/codex\/pull\/51650\" target=\"_blank\" rel=\"noopener\">merged pull request<\/a> clarifies that the previous behavior resulted in an unintentional information disclosure. By resolving unapproved hostnames, the system leaked metadata to DNS servers regardless of the final connection status. <\/p>\n<p>Additionally, the vulnerability was compounded by the way the tool interacted with macOS environments. The pull request noted that allowing local binding within a managed macOS sandbox effectively provided a bypass, granting direct outbound access to port 53-the standard port for DNS traffic. This could have allowed traffic to bypass intended network restrictions entirely.<\/p>\n<p>#### Why This Matters<br \/>\nIn modern cybersecurity, DNS leaks are a common but often overlooked vector for data exfiltration. When a system resolves a domain name, that query is typically logged by the recursive resolver. If an application resolves a private or internal hostname before checking its own security policy, it inadvertently signals the existence of that resource to external entities. By reordering the validation logic to prioritize permission checks, OpenAI has effectively closed a gap that could have been exploited to map internal network structures or track user activity.<\/p>\n<p id=\"caption-attachment-36713\">The Codex CLI 0.163.0 update was officially released on October 15. Image: OpenAI<\/p>\n<p><a class=\"echo_read_more\" href=\"https:\/\/mixed-news.com\/en\/codex-cli-0-163-0-dns-lookup-before-permission-check-port-53\/\" target=\"_blank\"> \u00bb More Info >>><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codex\u2019s network proxy had a privacy leak: it was broadcasting hostnames to DNS providers before verifying if the connection was actually permitted. Even when the proxy ultimately blocked a request, the damage was already done-the destination had already been leaked. OpenAI\u2019s October 15 update (Codex CLI 0.163.0) patches this oversight, ensuring permission checks now happen *before* any DNS lookups, while also tightening security against duplicate Host headers<\/p>\n","protected":false},"author":55,"featured_media":42181,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wpai_generated_summary":"","wpai_meta_description":"","footnotes":""},"categories":[339],"tags":[348,5986,101,2628,36,352],"class_list":["post-42180","post","type-post","status-publish","format-standard","has-post-thumbnail","category-vr","tag-ai","tag-ai-application","tag-artificial-intelligence","tag-codex","tag-mixtv","tag-openai"],"_links":{"self":[{"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/posts\/42180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/comments?post=42180"}],"version-history":[{"count":0,"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/posts\/42180\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/media\/42181"}],"wp:attachment":[{"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/media?parent=42180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/categories?post=42180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mixtv1.com\/index.php\/wp-json\/wp\/v2\/tags?post=42180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}