All guides

    Guide

    How do I keep coding agent tools patched when vendors ship fixes silently?

    Updated

    Short answer

    Patch based on version numbers and changelog wording, because some agent security fixes ship as ordinary changelog lines with no CVE, and your advisory feed will never flag them. Inventory the version of every agent, editor and Git client on every laptop. Read vendor changelogs every week. Set a minimum version wherever the tool supports one, and ask fork vendors in writing when fixes land. Patching shrinks the exposure window, and a check outside the agent adds a layer while you wait.

    Why advisory feeds miss agent fixes#

    Three tools your developers use recently shipped security-relevant fixes. Only some of those fixes came with an advisory.

    Claude Code 2.1.321 fixed, among other things, an issue where read-only Bash commands could run outside the sandbox without permission prompts. It also fixed an issue where deny rules and protected file checks didn't apply to files written through cp or mv. A write-up of the release notes (SmartScope) says no CVE numbers are listed in them. Those fixes live in a changelog, not an advisory feed.

    VS Code 1.145.3 fixed three MCP flaws that let servers run commands (beri.net). Those did get CVEs. Whether the editors built on VS Code carry the same code is a separate question.

    Git 2.56.1 fixed a bug where a recursive clone could execute attacker-controlled code (GitHub Blog). That matters because cloning repos is routine work for an agent.

    So waiting for the advisory doesn't work. If the vendor filed a security bug as an ordinary fix, your scanner may never flag it.

    What you're actually patching#

    You're patching three layers, and each one updates on its own schedule:

    • The agent CLI or app. Claude Code, Codex and others. Update behavior varies by tool and by install method.
    • The editor or fork that hosts an agent and its MCP client. Forks ship on their own schedules.
    • The tools the agent calls. Git, shells, package managers, MCP servers and extensions.

    The third layer is the easiest to miss. When an agent clones, installs and runs things on its own, a bug in Git or a package manager becomes an agent bug.

    What the built-in update controls do#

    Claude Code's setup docs give you 2 controls that matter here:

    • A release channel. "stable" uses a version that's typically about 1 week old and skips releases with major regressions.
    • A floor. In managed settings, minimumVersion enforces an organization-wide minimum that user and project settings can't override.

    Be careful with stable. A week of delay is also a week of exposure to a fix that shipped quietly. If you choose it, set a floor as well, and raise the floor when a security-relevant fix lands.

    Whether a laptop updates itself can depend on how the agent was installed. Check the vendor's docs for each install method your fleet uses, then confirm the installed versions from inventory instead of assuming.

    These controls cover only the tool they belong to. They don't tell you anything about the fork, the Git client or the MCP server.

    A decision rule#

    Choose the channel based on how quickly you can verify versions:

    • Can you inventory versions across the fleet within a day? Track the newest releases for the agent CLI, and raise minimumVersion whenever a release touches permissions, the sandbox or MCP handling.
    • Can't do that yet? Use stable plus a floor, and fix the inventory first. If you can't see the versions, you're only guessing about patches.

    Treat any changelog line that mentions permissions, the sandbox, deny rules, protected files, MCP or "outside the sandbox" as a security fix, even if it isn't labeled as one.

    A checklist#

    • Keep a live inventory of agent, editor, Git and extension versions on each laptop, pulled from the MDM you already run.
    • Subscribe to each vendor's changelog or release feed, and read it every week on a schedule. Don't wait until something breaks.
    • Set a floor in managed settings for every agent that supports one.
    • Ask each fork vendor in writing which build carries a fix and when it ships. One analysis of the VS Code patch noted that as of November 12, no fork had published a statement on the three CVEs. It warned: "you should not assume a fork is safe because it ships its own MCP client" (beri.net).
    • Update Git to a patched release. GitHub's advice: "Updating is the most effective way to protect against these vulnerabilities" (GitHub Blog).
    • Keep MCP servers and extensions on an allow-list with pinned versions. See vetting coding agent extensions and plugins.
    • After each agent release, review what changed before you widen the rollout.

    The gap patching can't close#

    Even a perfect process leaves a window: the fix ships, you learn about it, then the fleet updates. During that window, an agent with a flawed permission check is still running commands.

    Harden Agentic Integrity Foundation (AIF) runs on the developer laptop, outside the agent, at the agent's pre-execution hook. No command, file edit or push runs until AIF has checked it against the session's intent. The decision is made locally, and one policy covers every agent. If the agent's own permission check has a hole, the action still has to pass a check the agent doesn't control.

    You still patch. AIF is a layer, not a perimeter, and it doesn't replace least privilege, scoped credentials or egress policy. What it does is make sure one tool's permission logic isn't the only thing between a hostile repo and your credentials. AIF starts watch-only, so you can see what agents do before you enforce anything. To see how this fits into a review, read security review before approving Claude Code and Claude Code hooks.

    FAQ

    Related questions

    Does auto-update keep Claude Code patched?

    Not necessarily. Whether a laptop updates itself can depend on the install method, so check the vendor's setup docs for each method your fleet uses. Then confirm the versions actually installed from your MDM inventory.

    Should we use the stable channel for coding agents?

    Claude Code's stable channel uses a version that's typically about 1 week old and skips releases with major regressions. That delay also means a week without fixes you haven't received yet, so pair it with a minimum version in managed settings and read the changelogs.

    Do VS Code forks get the same fixes at the same time?

    Don't assume they do. Forks ship on their own schedules. Ask each vendor in writing whether its build contains the affected code, which version fixes it, and when that version ships.

    How do I know a changelog entry is a security fix?

    Look for wording about permissions, sandbox escapes, deny rules, protected files, MCP handling, or commands running without a prompt. Treat those entries as security fixes even when there's no CVE.

    Does a pre-execution check replace patching?

    No. It adds a check outside the agent, so a flaw in one tool's permission logic isn't your only control. You still patch, and you still need least privilege and scoped credentials.

    Sources

    1. Advanced setup - Claude Code Docs
    2. Claude Code 2.1.321 to 2.1.325 (SmartScope)
    3. VS Code 1.145.3 Fixes Three MCP Flaws That Let Servers Run Commands
    4. Git security vulnerabilities announced

    Start free at harden.run

    Full Enterprise access, free for 60 days: unlimited developers, custom policies, centralized visibility, no commitment.