8.3high
eBay API MCP Server Affected by Environment Variable Injection
- Severity
- 8.3high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.40% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-97rm-xj73-33jh
Description
eBay API MCP Server is an open source local MCP server providing AI assistants with comprehensive access to eBay's Sell APIs. All versions are vulnerable to Environment Variable Injection through the updateEnvFile function. 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. An attacker can inject arbitrary environment variables into the .env file. This could lead to configuration overwrites, Denial of Service, and potential RCE. There was no fix for this issue at the time of publication.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| YosefHayim ebay-mcp | <= 1.7.2 | CVE List |
| ebay-mcp (npm) | up to 1.7.2 | GitHub Advisory Database |
All scores
| GitHub_M | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H |
| GitHub | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H |
Classification
What each source says
CVE List
eBay API MCP Server is an open source local MCP server providing AI assistants with comprehensive access to eBay's Sell APIs. All versions are vulnerable to Environment Variable Injection through the updateEnvFile function. 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. An attacker can inject arbitrary environment variables into the .env file. This could lead to configuration overwrites, Denial of Service, and potential RCE. There was no fix for this issue at the time of publication.
GitHub Advisory Database
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 馃暥
NVD (es)
eBay API MCP Server es un servidor MCP local de c贸digo abierto que proporciona a los asistentes de IA acceso completo a las API de venta de eBay. Todas las versiones son vulnerables a la Inyecci贸n de Variables de Entorno a trav茅s de la funci贸n updateEnvFile. La herramienta ebay_set_user_tokens permite actualizar el archivo .env con nuevos tokens. La funci贸n updateEnvFile en src/auth/oauth.ts a帽ade o reemplaza valores ciegamente sin validarlos en busca de saltos de l铆nea o comillas. Esto permite a un atacante inyectar variables de entorno arbitrarias en el archivo de configuraci贸n. Un atacante puede inyectar variables de entorno arbitrarias en el archivo .env. Esto podr铆a llevar a sobrescrituras de configuraci贸n, Denegaci贸n de Servicio y potencial RCE. No hab铆a una soluci贸n para este problema en el momento de la publicaci贸n.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27203 changed 2026-02-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-97rm-xj73-33jh changed 2026-02-23 | CC-BY-4.0 |
| NVD | CVE-2026-27203 changed 2026-06-17 | Public domain |