Advisory

GHSA-97rm-xj73-33jh

Also known as: CVE-2026-27203

Summary

eBay API MCP Server Affected by Environment Variable Injection

Details

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 🕶

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-02-19 20:27 UTC
Modified
2026-02-23 23:43 UTC

Affected packages and fixes

ebay-mcp

npm · All systems

Affected

  • introduced 0, last affected 1.7.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences