Agent security
goose CLI flaw lets a crafted repo run commands via goose review (CVE-2026-129128)
A High-severity flaw in goose CLI 1.35.0 up to, but not including, 1.53.0 lets a repository's git config run commands when a developer runs goose review. Upgrade to 1.53.0 and treat cloned repos as untrusted.

Executive summary
On Nov 13, VulnCheck published CVE-2026-129128. In goose CLI 1.35.0 up to, but not including, 1.53.0, running goose review on a crafted repository runs the attacker's commands as the user. That can expose credentials and provider API keys. Developers on those versions who review repos they didn't write are exposed. The fix is in v1.53.0. This post covers who is affected and what to check this week.
What happened#
On Nov 13, VulnCheck published an advisory for CVE-2026-129128 in the goose CLI. The record is also in OSV.
The flaw is in the goose review command. An attacker sets diff.external in a repository's .git/config. When a developer runs goose review on that repo, goose calls git diff without --no-ext-diff, and git runs the attacker's command as that developer.
The advisory says this exposes credentials and provider API keys. It rates the issue High, CVSS v4.0 8.4, and classifies it as CWE-78, OS command injection. The fix commits are tagged v1.53.0.
Who is affected#
goose CLI versions 1.35.0 up to, but not including, 1.53.0. On 1.53.0 or later, you have the fix.
The trigger is narrow. A developer has to run goose review inside a repository whose git config the attacker controls. In practice that's a repo someone cloned or downloaded, not one your team wrote.
The CVSS vector marks it local with user interaction required. A developer who never runs goose review on a crafted repo isn't reached by this bug.
Neither advisory mentions exploitation in the wild, and neither says whether other goose commands are affected. Treat it as one command in one tool. The pattern (a tool shelling out to git inside a repo it doesn't trust) is broader than goose.
What to check this week#
- Find goose installs. Search laptops and CI images for the
goosebinary and rungoose --version. Anything from 1.35.0 up to, but not including, 1.53.0 needs an upgrade. - Upgrade, then re-run the version check. A machine isn't fixed until it reports 1.53.0 or later.
- Tell developers directly: no
goose reviewon a repo you didn't write until you've upgraded. - In cloned repos you can reach, run
git config --local --get diff.external. Any result you can't explain deserves a look before anyone runs a diff tool there. - If someone ran
goose reviewon an untrusted repo while on an affected version, rotate the provider API keys and credentials on that machine. The advisory names both as exposed. - Keep untrusted repos off machines that hold production credentials. A repo's own git config can tell git what to run.
Where Harden helps, and where it doesn't#
Harden Agentic Integrity Foundation (AIF) runs on the developer laptop, outside the agent, at the agent's pre-execution hook. It checks every command, file edit and push against the session's intent before it runs. Decisions happen locally, in milliseconds, under one policy across agents, and rollout starts watch-only.
Now the scope. In this bug, git launches the damaging command from a setting in the repo, during goose's own review step. No agent proposes that command at a hook, so Harden isn't the control for this CVE. Patching goose is.
The crafted repo is still a risk once a coding agent starts working in it. If repo content steers an agent into reading a secret and sending it over the network, Harden checks that file read and that network call before they run. It follows the data from source to destination, and a secret reaching a network call is a dangerous flow it acts on.
Harden won't stop a command that already ran outside any agent, and it can't un-steal a credential that has already left the machine. It's a layer, not a perimeter. It doesn't replace least privilege, scoped credentials or egress policy.
Read more#
For the wider pattern of repo content steering an agent, see protect coding agents from prompt injection.