CVE-2026-27203
JSON

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 packageVersionsReported by
YosefHayim ebay-mcp<= 1.7.2CVE List
ebay-mcp (npm)up to 1.7.2GitHub Advisory Database

All scores

GitHub_M8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
GitHub8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H

Classification

CWE-15CWE-74

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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_URI to 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

SourceRecordLicence
CVE ListCVE-2026-27203 changed 2026-02-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-97rm-xj73-33jh changed 2026-02-23CC-BY-4.0
NVDCVE-2026-27203 changed 2026-06-17Public domain