MCP and parser tooling wave (3 GHSAs): positional args become kubectl flags¶
Wave in one line: three tooling libraries that compile or forward caller-supplied strings into privileged sinks (kubectl argv, SQL text, generated parser code) each trusted the caller's token shape, giving remote MCP clients host file reads, a read-only SQL gate full write authority, and Node-process code execution at parser-compile time.
Source: GitHub Security Advisories, coordinated publication 2026-11-23T00:30Z (package/version fields populated per advisory). All three legs landed inside the same one-minute window; the same-product re-sweep and coordinated-dump rules from prior waves apply.
Advisories covered¶
mcp-server-kubernetes: positional operands reach kubectl unquoted, so a leading dash becomes a flag (CVE-2026-134817 / GHSA-8v48-c263-r637, high, before 4.2.0)¶
mcp-server-kubernetes exposes tools such as exec_in_pod, kubectl_patch, and kubectl_logs to remote MCP clients over SSE or Streamable HTTP transport. Positional operands (pod names, container names, namespace values) were appended to the kubectl argv without a -- separator or leading-dash rejection, so a client can supply --filename=/etc/shadow (or --filename=<secret path>) as the pod-name argument and kubectl consumes it as its own flag. The result is kubectl reading files from the MCP server host, bypassing the tool's file-read restrictions entirely, and the same grammar injects other flag classes depending on the subcommand.
Operator rules:
- Leading-dash battery on every MCP tool that shells out. For each string-typed parameter of any kubectl/docker/curl/git-wrapping MCP tool, submit a value beginning with
-,--, and-,and observe whether the underlying binary parses it as a flag (error-text shape, side effects at an owned sink). This is the same argv-injection axis as the Kubesharkpod_regex--setleg (Nov 16, on the August 6 agent tool-policy page); the difference here is the transport: the attacker is a remote MCP client, not a local prompt-injected agent. An MCP server that accepts SSE/Streamable HTTP connections from anything other than its own localhost host is a remote command-injection surface the moment one positional reaches argv unquoted. - The
--separator and--flag=valueshapes are the fix fingerprint. Grep the vendored source for argv assembly sites: does any user-influenced token pass through--(end-of-flags), anargs.BeforeOptions-style validator, or a leading-dash rejection? Absence of all three on a remotely-reachable server is the finding, reported per tool, before you test traversal or injection content. - Inventory reachable tools as the recon step. On an exposed MCP endpoint, enumerate the tool list (tools/list over the transport), classify each tool by which local binary or SQL engine it wraps, and battery only the wrappers first.
exec_in_pod-class tools that already "should" be dangerous still hide flag-injection classes behind parameter names that sound positional (pod,container,path,name,selector).
DBHub: backslash-escaped quotes hide stacked statements from the string scanner that enforces read-only (CVE-2026-134803 / GHSA-p6h8-6r97-q9rf, high, before 1.7.0)¶
DBHub gates MCP clients whose role is restricted to execute_sql in read-only mode, implemented by scanning SQL text for statement boundaries with a custom scanSingleQuotedString. The scanner mishandles backslash-escaped quotes, so stacked statements hidden inside a string literal survive to the server: payloads that clear transaction_read_only, issue COMMIT, or run write/DDL statements execute against MySQL, MariaDB, or PostgreSQL despite the read-only gate. The policy parser and the database engine disagree about where the string ends.
Operator rules:
- Quote-state parser differential is the bypass for any client-side SQL gate. Whenever "read-only", "no stacked statements", or "no dangerous keywords" is enforced by string scanning rather than database-native permissions, run the escape battery:
\','',\",\\',\x5c+ quote,\' /*!40101 ... */, multi-byte-collision twins for legacy charsets. Prove with an owned disposable database, marker rows only. - Session-variable resets are the read-only kill switch to test.
SET TRANSACTION READ WRITE,SET SESSION transaction_read_only=0,COMMIT-mid-transaction, andSET autocommitvariants each defeat different gate implementations; enumerate per engine (MySQL/MariaDB vs PostgreSQL differ). - Role-gated MCP tools deserve the same privilege-boundary testing as remote tools. A "restricted client" is an attacker posture, not a trusted one: if the credential can be obtained (shared lab config, leaked env, prompt-injected agent given the scoped key), the gate's parser is the perimeter. Same trust-inversion framing as the mcp-server-kubernetes leg above.
binary-parser: string-typed options are compiled unvalidated into generated JavaScript, so parser definitions execute code (CVE-2026-134814 / GHSA-hhq6-2gpv-hrf4, critical, before 2.3.1)¶
binary-parser builds JS parser code from a definition object; Context.generateOption() interpolated string-typed option values (length, lengthInBytes, key, tag, offset, and namely() alias values) into the generated source without validation, so a crafted definition executes arbitrary JavaScript in the Node.js process at compile time. The precondition is any flow where parser definitions are data: stored parsing templates, user-submitted binary-format configs, schema registries, or admin-uploaded format definitions feeding compile().
Operator rules:
- Code-generation sinks turn config fields into code fields. For any library that compiles a declarative definition into executable source (parser builders, query builders, form/report designers, template engines), fuzz every string-typed option, not just obviously expression-flavored ones. Options that accept numbers usually still accept strings, and the generator's interpolation is where validation vanished.
- Compile-time execution beats parse-time. The payload fires when the parser is compiled, before any binary data is parsed. If your target "validates" the definition against a schema and stores it, that schema round-trip may already have compiled it. Test the create/save endpoint, not just the parse endpoint.
- Precondition grep for bounty hunting: search Node codebases for
binary-parserusage whereaddAnalyzer,compile(), orcreateParser()receives anything from a request, database, or uploaded file. Self-hosted format/decoder UIs and low-code integrations are the natural habitat.
Validation boundaries¶
- mcp-server-kubernetes: your own disposable cluster plus a marker file you own outside the pod; never read real secrets or host paths beyond a canary.
- DBHub: disposable databases and rows you created; the escaped-quote payload should prove a write to a scratch table, not touch application data.
- binary-parser: inert
require('child_process')-free proofs, e.g. write a marker file or compute a token into the process env, inside a disposable Node process with no credentials in scope.
Related pages¶
- August 6 agent tool-policy page: Kubeshark
--setHelm injection and Gortex absolute-path write exemption (local-agent-side siblings of the same argv/confinement axes). - May 5 agent Git page: simple-git
--execpack-protocol injection (same leading-dash-vs-guard class, local-library side). - July 8 integration/deploy/MCP page: Gradio forged
Host: localhostSSR-proxy loopback bypass (same wave, folded there).
November 25 follow-up: two more legs where a caller string becomes an argv token or a credential lookup key¶
- OneDev commit-query argument injection via branch names (CVE-2026-136920 / GHSA-hcv4-7hc3-p6gh, high, before 17.2.4). An authenticated user pushes a branch named
--output=<path>(or similar git option), then queries it through the commits page or REST API; the branch name enters the git invocation as an option token, overwriting server-writable files for denial of service. Same grammar as the page's mcp-server-kubernetes leg (positional operand consumed as a flag), new locus: Git ref names are attacker-written argv. Operator rules: (a) everywhere a server shells out togitwith a ref/branch/tag/commit parameter, test--output=,--upload-pack=,--exec=,-c-prefixed and--git-dir=/--work-tree=shapes as the name itself; (b) ref-creation APIs are the write primitive, so the precondition is only push permission, which many hosted-Git platforms grant to any project member; (c) proof to a scratch path you own, DoS-class file overwrites against server config are out of scope on engagements. - Eclipse Apoapsis ORT Server credential helper: URL re-parse confusion steals cross-host credentials (CVE-2026-136862 / GHSA-6w78-33g7-9rpr, high, helper 0.1.0-0.2.0 / server 0.65.0-0.83.0). The helper selects stored credentials by re-parsing the requested URL with a regex that
:and@characters in the path can confuse, so a worker fetching a crafted Git URL (e.g., via a submodule of an analyzed repo) resolves to credentials stored for a different host such as github.com, which Git then sends to the attacker-controlled server. Durable rules: (a) any custom credential helper that maps URL to stored secret with a hand-rolled parser is a credential-confusion oracle: embed host-lookalike delimiters (:,@) in the path/submodule URL and watch which credential your owned collector receives; (b) submodule/analyzed-repo content is the attacker input channel, so on CI/analysis platforms (ORT, SCA scanners, build farms) treat "server fetches a repo you named" as already attacker-controlled; (c) the evidence is one captured Authorization header at your owned endpoint showing the wrong host's credential, redact the secret, show the host mismatch. setup-oscGitHub Action: the ORT Server's own version string becomes runner shell (CVE-2026-136881 / GHSA-cff3-3j89-wwm4, high, commit 4e9eaff up to 03efc4c). The action inserts the/api/v1/versionsresponse into a shell script through a GitHub Actions expression with no validation, so anyone who controls the configured ORT Server response (e.g., a compromised server, a hostile config in a forked workflow's env) executes arbitrary commands on the runner and reaches the workflow's secrets. The fix allowlists[A-Za-z0-9.+-]. Rule: audit any composite/action that interpolates an API response intorun:; the trust boundary is the remote server's response body, not the workflow author. Test on engagements by pointing a lab workflow at your own endpoint returningx$(touch /tmp/marker)-class values.- Sibling genealogy: this page's kubectl positional-leg and the May 5 simple-git
--execleg cover the argv-token axis; the credential-helper leg is the URL-identity axis of the July 30 URL-policy page, arriving through a Git helper instead of an HTTP client; the setup-osc leg matches the Nov 19 TeamCity guest-VCS deputy family (server-controlled data crossing into runner execution).