CVE-2026-27203: eBay API MCP Server Affected by Environment Variable Injection
The eBay API MCP server (`ebay-mcp` on npm, version 1.7.2 and earlier) writes tokens into its `.env` file without checking for newlines or quotes. A caller of the `ebay_set_user_tokens` tool can inject arbitrary environment variables. No patched version is listed in the package data.
Published Feb 19, 2026 · Updated Feb 23, 2026 · Analysis Oct 31, 2026
What an attacker can do
The ebay_set_user_tokens tool updates the server's .env file with new tokens. The updateEnvFile function in src/auth/oauth.ts appends or replaces values as given. A value containing a newline or quote closes the intended line and adds new KEY=value lines, which the server reads on its next start.
The advisory lists three consequences. Critical settings such as EBAY_REDIRECT_URI can be overwritten, which can hijack the OAuth flow. Invalid configuration can stop the server from starting. In some environments, controlling variables such as NODE_OPTIONS can lead to code execution.
The attacker needs to be able to call the tool, which the CVSS vector counts as low privileges. In an agent setup, anything that can steer the model's tool calls, such as a prompt injection in content the agent reads, can supply the poisoned token value. The vector rates integrity and availability impact high and confidentiality low.
Who is affected
ebay-mcp on npm at version 1.7.2 and earlier is affected. Check your install:
npm ls ebay-mcpIf you run it through npx or an MCP client config, look at the package version pinned there. Inspect the .env file the server uses for lines you did not write.
ebay-mcp
- Ecosystem
- npm
- Affected
- <= 1.7.2
- Fixed in
- No patched version yet
- Check
npm ls ebay-mcp
How to fix it
The package data lists no patched version, so none is confirmed. A fix commit is referenced in the advisory (aab0bda), but check the repository and npm for a release newer than 1.7.2 that contains it before relying on it.
Until then: restrict who and what can call ebay_set_user_tokens, require approval for that tool in your MCP client, and keep the .env file read-only for the server process where your setup allows it.
How to tell if you were hit
Open the server's .env file and look for extra or duplicated keys, especially EBAY_REDIRECT_URI, NODE_OPTIONS or anything you did not set. Check the MCP client logs for calls to ebay_set_user_tokens with token values containing newlines or quotes. Beam records the MCP tool calls an agent makes, so its logs can show who called that tool and with what arguments.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
The ebay_set_user_tokens tool allows updating the .env file with new tokens. The updateEnvFile function in src/auth/oauth.ts blindly appends or replaces values without validating them for newlines or quotes. This allows an attacker to inject arbitrary environment variables into the configuration file.
Impact
An attacker can inject arbitrary environment variables into the .env file. This could lead to:
- Configuration Overwrites: Attackers can overwrite critical settings like
EBAY_REDIRECT_URIto hijack OAuth flows. - Denial of Service: Injecting invalid configuration can prevent the server from starting.
- Potential RCE: In some environments, controlling environment variables (like
NODE_OPTIONS) can lead to Remote Code Execution.
Found with MCPwner 🕶
Credited to nedlir.
Questions
- Is there a fixed version of ebay-mcp?
The package data shows no patched version for
<= 1.7.2. A fix commit is linked from the advisory; confirm a release that includes it before upgrading.- Can this lead to remote code execution?
The advisory says it can in some environments, when an injected variable like
NODE_OPTIONSchanges how Node starts. It is not a direct code execution flaw.- Is it exploited in the wild?
No source reports exploitation, and it is not in CISA's KEV catalog.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
medium6.5Nov 10, 2026CVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026
