TL;DR. AI has shrunk the gap between "a fix is public" and "an exploit works" from weeks to hours. Network security vendors answer that with virtual patches: one rule per vulnerability that blocks the attack in front of the vulnerable system. MCP servers have had nothing like it. Today we're releasing mcp-vpatch, a small, free, open-source pack of virtual patches for MCP: one rule per public advisory, each with tests that prove it blocks the exploit and still lets normal calls through, plus two tiny guards to run them.
The gap
When a security fix lands in an open-source MCP server, the diff is public. A model can read it and write a working exploit faster than most teams can schedule an upgrade. Palo Alto Networks has started shipping AI-assisted, per-vulnerability virtual patches for network traffic for exactly this reason.
MCP already has firewalls and gateways: tools like mcp-firewall, McpVanguard, Pipelock and mcp-gate, plus scanners with proxy modes. They're useful. But they enforce generic rules (prompt-injection patterns, secret scanners, path regexes) or rules you write yourself. None of them ships "here is the rule for advisory X, and here is proof it works." That's the piece we built.
What a rule looks like
The davinci-resolve-mcp bug (GHSA-x29h-6rgf-w233) passed footage folders to find. A "folder" starting with -exec became command execution. The virtual patch:
id: GVP-2026-0002
match:
tools: [conform]
args: [footageDir, footageDirs] # matched at any depth, list items one by one
when:
- starts_with_dash: {}
affected: {package: davinci-resolve-mcp, fixed: "4.14.3"}
tests:
block:
- {tool: conform, arguments: {action: relink_scalefix, args: {footageDirs: ["/media/A", "-delete"]}}}
allow:
- {tool: conform, arguments: {action: relink_scalefix, args: {footageDir: "/Volumes/RAID/Project-A"}}}
Every rule must ship both lists. mcp-vpatch test fails if a rule stops blocking its exploit, or starts blocking normal use. A rule without tests won't load.
The first four rules
- GVP-2026-0001: mcp-server-kubernetes reads any file via
valuesFile(CVE-2026-85753, fixed in 4.0.5). The rule requires a.yaml/.ymlpath inside your chart folder and blocks secrets like~/.kube/configand/proc/self/environ. - GVP-2026-0002: davinci-resolve-mcp
findargument injection (GHSA-x29h-6rgf-w233, fixed in 4.14.3). A folder can't start with-. - GVP-2026-0003: fastmcp's HTTP transport answered any website (fixed in 4.26.2). Only loopback
HostandOriginget through, andAccess-Control-Allow-Origin: *is stripped. - GVP-2026-0004: 1MCP gateway hands a full-scope token to remote callers (GHSA-vrqm-3x52-5334, fixed in 0.39.9). More on this one below.
The first three are the bugs from our earlier write-up, The model is not your user. We only write rules for bugs that are public and fixed, and the test suite enforces that list.
There are also four opt-in bug-class rules for the patterns we find most: a value that starts with -, a path that escapes its folder (symlinks included), a URL that points at an internal address in any spelling (like http://2130706433/), and shell metacharacters in command arguments (alert only). These need tuning per server, so start them in monitor mode.
The newest rule: 1MCP and the reverse proxy that made everyone "local"
What it does. 1MCP is a gateway that puts many MCP servers behind one endpoint. With --enable-auth, clients need a bearer token. To make the local CLI easy to use, POST /api/auth/cli-token hands out a token to callers on the same machine.
The bug. "Same machine" was decided by the TCP peer address: if the connection came from 127.0.0.1, the caller got a token with every scope. But the project's own cloud deployment guide puts Caddy on the same host, in front of 1MCP. Behind a same-host reverse proxy, every request from the internet arrives from 127.0.0.1. So anyone could mint a full-scope token with one unauthenticated request, then list and call every tool on every server behind the gateway. We reported it privately; it was published today, rated High (CVSS 8.1, CWE-290).
Fix. Upgrade @1mcp/agent to 0.39.9 or later (users of the 0.40.0 betas should move to 0.39.10). Token issuance now needs proof drawn from an owner-only local credential, not just a loopback connection. Then review and revoke any tokens you can't account for.
The virtual patch. The local CLI talks to the runtime directly, never through the proxy, so the token route has no business on the proxied hop. GVP-2026-0004 blocks it there. It compares a normalized path, so /API/auth/%63li-token/ doesn't slip past. Run the guard between Caddy or nginx and 1MCP, or put the one-line equivalent in the proxy itself (the rule's notes give both).
We tested it against a real 1MCP 0.39.8 on our own machine. Sent straight to the runtime, the way a same-host proxy forwards it, the request got a token. Through the guard, all three path spellings we tried got 403, and /mcp still got 1MCP's normal 401 for a missing token.
The lesson. "The connection came from localhost" proves where the last hop was, not who the caller is. Anything that grants authority to local callers needs a secret only a local user can read.
Running it
For a stdio server, change one line in your MCP client config:
mcp-vpatch wrap --package mcp-server-kubernetes --root ~/charts -- npx -y mcp-server-kubernetes
A blocked call never reaches the server. The model gets a tool error that names the rule, and the decision is logged as JSON.
For an HTTP server, put the guard in front and point your client (or your reverse proxy) at it:
mcp-vpatch http-guard --package fastmcp --listen 127.0.0.1:8765 --upstream http://127.0.0.1:8080
We tested this against a real fastmcp 4.24.5 server on our own machine. Sent directly, a request with Origin: https://evil.example got 200 and Access-Control-Allow-Origin: *. Through the guard it got 403, and so did a rebinding-style Host header. A normal local client still completed the handshake and called tools.
(A note on browsers: recent Chrome now asks the user before a public site can reach localhost, which blunts the fastmcp class of bug. Other browsers and older versions differ, and non-browser callers aren't affected. Upgrade anyway.)
What a virtual patch is not
- It's not the fix. Every rule names the fixed version. Upgrade, then delete the rule.
- It only sees what crosses the wire. If the server decodes or rebuilds a value internally, a rule can miss it.
- URL rules judge the URL as written. The server still has to check the IP it actually connects to, after DNS and after every redirect.
- A guard only protects traffic that goes through it. Don't leave the upstream port reachable.
Get it
Code, rules and docs: github.com/HexMystic/mcp-vpatch (MIT). Rules are plain YAML, and mcp-vpatch export dumps JSON if you'd rather load them into the gateway you already run. Contributions are welcome, for public and fixed advisories only.
Disclosure
All four bugs were reported privately or independently and are fixed. The 1MCP advisory was published by its maintainer on 18 November 2026, with HexMystic credited as reporter. Thanks to the maintainer for a careful fix that addresses the root cause rather than just the proxy case. About ten more reports are open with other maintainers. We don't name those projects until they're fixed, per our disclosure policy, and the pack gets no rules for them until then.
Want this done on your MCP server?
We run fixed-price security reviews for teams shipping MCP servers and agent integrations. Every finding comes with a working proof of concept, the fix, and a tested guard rule you can deploy the same day. Snapshot reviews start at $1,500, and our first three clients get 30% off in exchange for an anonymized case study after fixes ship.