Depi stated that a Codex prompt injection can lead to npm publishing permissions
Start here
安全公司Depi于2026年11月11日经Bugcrowd披露openai/codex仓库利用链:Issue Labeler工作流把任意用户可提交的issue标题和正文送入Codex提示词,攻击者可在Codex沙箱执行任意命令,经/tmp/下未鉴权调试管道读取Runner.Worker进程内存,窃取GITHUB_TOKEN与ACTIONS_RUNTIME_TOKEN;再用Cacheract投毒rust-ci缓存获得contents:write,植入带id-token:write的持久化后门工作流,并结合release:delete漏洞,Depi称可取得向官方@openai/codex npm包发布恶意版本的凭证。Depi提交完整概念验证,OpenAI已接受并修复;据披露没有恶意npm版本到达用户,threat.wiki称OpenAI发放1,000美元初始赏金。该包每月被下载数百万次。
Generated by AI from reports · Updated 5 days ago
Progress timeline
- X@Basant_Pandey· Discussion@OpenAI Depi's full write-up: https://t.co/U2Zv6JvqAy(opens the original post in a new tab)
- Hacker NewsHacker News· DiscussionBackdooring Codex(opens the original post in a new tab)
- DepiSelectedDepi says Codex repository Actions exploit chain can lead to npm publish permissions; OpenAI has fixed it
Security firm Depi disclosed an exploit chain in the openai/codex repository, starting from issue prompt injection, demonstrated code execution in its test repository, and said it could ultimately obtain credentials to publish a malicious version of the official @openai/codex npm package. The Issue Labeler workflow of openai/codex feeds issue titles and bodies, which any user can submit, directly into the Codex prompt; the attacker thereby executes arbitrary commands in the Codex sandbox, then reads the memory of the Runner.Worker process through an unauthenticated CoreCLR debugging pipe under /tmp/, stealing secrets such as GITHUB_TOKEN; then uses Adnan Khan's Cacheract tool to poison the rust-ci workflow cache, and combined with the release:delete vulnerability he discovered, Depi says it can request an npm-trusted signing JWT from GitHub. Depi submitted a complete proof of concept via Bugcrowd, and OpenAI has fixed it. The package is downloaded millions of times per month.
- Date not givenBugcrowdSelectedResearch team says GitHub Actions chain can be used to plant a backdoor workflow in Codex
Depi's Research Team disclosed through Bugcrowd a full CI/CD attack chain against openai/codex; the vulnerability was accepted and fixed by OpenAI. The attack begins with prompt injection in the issue-labeler.yml workflow: any user embedding attacker-controlled instructions in a GitHub issue can achieve command execution inside the Codex agent sandbox; it then uses the .NET CLR debugging pipe exposed in /tmp/ to escape the workspace-write sandbox, read the runner process memory and obtain ACTIONS_RUNTIME_TOKEN and GITHUB_TOKEN; with these credentials it then performs GitHub Actions cache poisoning, moves into the higher-privilege rust-ci.yml workflow to obtain contents: write, and implants a persistent backdoor workflow with id-token: write.
- Date not giventhreat.wikiSelectedResearchers disclose OpenAI Codex issue-labeler prompt injection chain that can lead all the way to npm publishing privileges
Depi Security disclosed on November 11, 2026 a full exploit chain against the openai/codex repository, going from a GitHub issue prompt injection all the way to npm Trusted Publishing privileges for the official @openai/codex package; OpenAI has fixed the core vulnerability, and the disclosure says no malicious npm version reached users. The chain was disclosed through Bugcrowd; OpenAI deployed a fix immediately and issued a $1,000 initial bounty (the policy pays up to $100,000 for critical vulnerabilities); threat.wiki accordingly recommends counting the hops from untrusted text to publishing credentials and cleaning up wildcard allow-users.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@GCSAqianyeThe Codex workflow that labels issues sends the full text of any GitHub issue into the prompt. Combined with a sandbox escape and Actions cache poisoning, it could plant a backdoor in the next version of the official `@openai/codex`. OpenAI has already fixed it, but the pattern remains: a…(opens the original post in a new tab)
- X@P7RIM3depi's full chain writeup, bounty is initial and still under review. image: Depi https://t.co/cklGNBVsEU(opens the original post in a new tab)
- X@P7RIM3a github issue. thats all it took researchers prompt injected the codex bot that labels issues on openai's repo, escap…(opens the original post in a new tab)
- X@IzumaNetworksDepi prompt-injected Codex's issue-labeler bot with a GitHub issue, then chained runner access into control of OpenAI's…(opens the original post in a new tab)
- X@ZeroAgencyAIThe chain: prompt injection, code in the agent's sandbox, sandbox escape, secrets read from memory, poisoned Actions ca…(opens the original post in a new tab)
1 likes·Nov 13 02:45Collect
- X@ZeroAgencyAIResearchers at Depi, a security company, showed how one GitHub issue could reach OpenAI's Codex release pipeline. A bot…(opens the original post in a new tab)
- X@JesseNotAiThe issue text went straight into the agent's prompt. From there: code in its sandbox, a breakout, then the tokens to p…(opens the original post in a new tab)
- X@JesseNotAiSay your team hooks up a coding agent to sort new GitHub issues. Anyone on the internet can open an issue. Researchers…(opens the original post in a new tab)
- X@ArbiterForgeOne GitHub issue was enough. Depi fed a crafted issue into OpenAI's own Codex labeler, escaped the sandbox through debu…(opens the original post in a new tab)
- X@SaFeRamirezAsí casi backdoorean Codex en npm: un issue público, el bot con Codex lo leyó como órdenes y filtró tokens. Si tu agent…(opens the original post in a new tab)
- X@abhiunixopenai's codex repo had a bot that labels new github issues. anyone could open one, and the title and body went straigh…(opens the original post in a new tab)
6 likes·Nov 13 02:45Collect
- X@ethansmadjaMillions of devs were one GitHub issue away from installing a backdoored Codex. 🤯 Insane exploit chain by @depi_ 👇 ht…(opens the original post in a new tab)
2 likes·Nov 13 02:45Collect
Attention trend
New sources per day
- Nov 25: 2 new sources (2 outlets, 0 accounts)
- Nov 26: 0 new sources (0 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)