
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-27203 is an environment variable injection vulnerability in the eBay API MCP Server (npm package ebay-mcp), an open-source local MCP server providing AI assistants with access to eBay's Sell APIs. All versions up to and including 1.7.2 are affected. The vulnerability was discovered and published on February 18, 2026, with NVD publication on February 21, 2026. It carries a CVSS v3.1 base score of 8.3 (High) (GitHub Advisory).
The root cause lies in the updateEnvFile function within src/auth/oauth.ts, which blindly appends or replaces values in the .env configuration file without sanitizing input for newline characters or quotes (CWE-15: External Control of System or Configuration Setting; CWE-74: Improper Neutralization of Special Elements). An authenticated attacker with low privileges can invoke the ebay_set_user_tokens tool and supply a crafted token value containing newline sequences (e.g., \nNODE_OPTIONS=--require /tmp/malicious.js) to inject arbitrary key-value pairs into the .env file. The fix, committed in aab0bda, replaced the naive string manipulation with dotenv.parse and dotenv-stringify to safely handle environment file serialization (GitHub Advisory, Fix Commit).
Successful exploitation allows an attacker to overwrite critical configuration settings such as EBAY_REDIRECT_URI to hijack OAuth flows, inject invalid configuration to cause Denial of Service (preventing the server from starting), or in environments where NODE_OPTIONS or similar variables are respected, achieve Remote Code Execution. Confidentiality impact is rated low (limited credential or configuration exposure), while integrity and availability impacts are rated high due to the ability to fully corrupt the application's runtime configuration (GitHub Advisory, Security Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at the time of publication. The vulnerability was discovered using the MCPwner security tool and reported by researcher nedlir. The EPSS score is approximately 0.042% (0.000420), placing it in the 6th percentile for exploitation likelihood within 30 days. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory).
ebay_set_user_tokens MCP tool, which is designed to update OAuth tokens in the .env file.validtoken\nNODE_OPTIONS=--require /tmp/evil.js or validtoken\nEBAY_REDIRECT_URI=https://attacker.com/callback.updateEnvFile function in src/auth/oauth.ts writes the unsanitized value directly into the .env file, causing the injected variable to appear as a new line in the configuration.EBAY_REDIRECT_URI manipulation, cause DoS by injecting malformed configuration, or achieve RCE by setting NODE_OPTIONS to load a malicious module on next server restart (GitHub Advisory, Security Advisory)..env file in the application working directory, particularly new lines not matching expected eBay token variable names (e.g., NODE_OPTIONS, PATH, or unexpected EBAY_REDIRECT_URI values pointing to external domains)..env file updated outside of normal deployment or configuration change windows.ebay_set_user_tokens tool with unusually long or multi-line token values.EBAY_REDIRECT_URI was overwritten.NODE_OPTIONS=--require) or spawning unexpected child processes.The vulnerability was patched in commit aab0bda by replacing the unsafe string manipulation in updateEnvFile with dotenv.parse and dotenv-stringify, which properly sanitize environment variable values. Users should update the ebay-mcp npm package to any version incorporating this fix (post-1.7.2). As a workaround prior to patching, restrict access to the ebay_set_user_tokens tool to trusted users only, implement file integrity monitoring on the .env file, and avoid exposing the MCP server to untrusted network clients. Additionally, monitor .env file modifications for suspicious changes (GitHub Advisory, Fix Commit).
The vulnerability attracted commentary in the broader MCP security community, with several blog posts and articles discussing it as part of a pattern of recurring security flaws in MCP server implementations. Posts on dev.to by kai_security_ai referenced CVE-2026-27203 in analyses titled "Three New MCP CVEs: The Ecosystem Is Getting Harder to Defend" and "Ten CVEs Later: Why MCP Developers Keep Making the Same Mistake," highlighting systemic input validation failures across MCP projects. The vulnerability was also noted on Bluesky and in security digest aggregators (dev.to MCP CVEs, dev.to 30 CVEs).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."