Update the Junie GitHub Action to 1.8.0+ and the Junie CLI to 26.8.24+
JetBrains Junie: prompt-injection guard bypassed with HTML-encoded text, and fork updates could run code with workflow credentials · Security incident · Web · JetBrains (NVD) · Nov 6, 2026
What happened
JetBrains published four CVEs for its Junie coding agent, listed on NVD on 6 Nov 2026. In the Junie GitHub Action before 1.6.4, the prompt-injection protection could be bypassed with HTML-encoded characters (CVE-2026-123851); before 1.8.0, code execution with the workflow's credentials was possible via fork updates (CVE-2026-123852, CVSS 7.4). In the Junie CLI before 26.8.24, the 'Allow Similar Commands' option could let commands run (CVE-2026-123315), and before 26.6.29 sensitive environment variables were exposed in session event logs (CVE-2026-123316).
How to prevent it
Pin AI agent actions to patched versions, don't let agent workflows triggered by forks or outside issues run with write tokens or secrets, and avoid fuzzy 'allow similar' approval settings. Treat agent session logs as files that can hold secrets.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I use JetBrains Junie in a GitHub Action and on my machine. Help me reduce the risk of prompt injection (hidden instructions in content the AI reads). 1) Show me how to check which Junie GitHub Action version my workflows pin, and how to move to 1.8.0 or later. 2) Check which workflows run Junie on pull requests or issues from forks or outside contributors, and what secrets and token permissions those runs get; suggest the smallest permissions that still work. 3) Show me how to check my Junie CLI version and update to 26.8.24 or later, and whether I've turned on 'Allow Similar Commands'. 4) Tell me where Junie keeps session logs and how to check them for leaked environment variables. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.
Why this keeps happening: trusting agents & ai input
An AI agent treats everything it reads as possible instructions: a web page, a README, an email, a code comment or the output of another tool. If that content was written by an attacker, the agent can be steered into running commands, reading files or sending data somewhere it should not.
A quick checklist before you ship
- Give each agent only the tools and folders it needs for the task at hand.
- Require manual approval before it runs shell commands, sends network requests, deletes files or spends money.
- Do not open untrusted repositories or MCP configs with auto-run turned on.
- Keep API keys and production credentials out of any environment an agent can read.
More on this: every trusting agents & ai input story and our related guide.
Tools involved
JetBrains Junie stories, GitHub Actions stories
Related stories
- If you run Hermes Agent with Bot Desktop inside a docker or ssh terminal backend, upgrade to 0.23.2 or later
Hermes Agent: code inside its Docker or SSH backend could set env vars on the agent's own machine, fixed in 0.23.2 - If you give an AI agent mcp-server-git, upgrade it to 2026.11.18 or later today, and don't point it at repos you haven't checked
mcp-server-git: six more ways a repo's own Git config could run commands, fixed in 2026.11.18 - Give AI assistant connectors their own scoped, short-lived tokens, never full session tokens
Mittwald's MCP server leaked customer session tokens, and an attacker used them to get into 56 hosting projects
Source: original post on Web ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.