{
  "ghsa_id": "GHSA-97rm-xj73-33jh",
  "cve_id": "CVE-2026-27203",
  "url": "https://api.github.com/advisories/GHSA-97rm-xj73-33jh",
  "html_url": "https://github.com/advisories/GHSA-97rm-xj73-33jh",
  "summary": "eBay API MCP Server Affected by Environment Variable Injection ",
  "description": "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.\n\n### Impact\nAn attacker can inject arbitrary environment variables into the `.env` file. This could lead to:\n- **Configuration Overwrites**: Attackers can overwrite critical settings like `EBAY_REDIRECT_URI` to hijack OAuth flows.\n- **Denial of Service**: Injecting invalid configuration can prevent the server from starting.\n- **Potential RCE**: In some environments, controlling environment variables (like `NODE_OPTIONS`) can lead to Remote Code Execution.\n\nFound with [MCPwner](https://github.com/Pigyon/MCPwner) 🕶",
  "type": "reviewed",
  "severity": "high",
  "repository_advisory_url": "https://api.github.com/repos/YosefHayim/ebay-mcp/security-advisories/GHSA-97rm-xj73-33jh",
  "source_code_location": "https://github.com/YosefHayim/ebay-mcp",
  "identifiers": [
    {
      "value": "GHSA-97rm-xj73-33jh",
      "type": "GHSA"
    },
    {
      "value": "CVE-2026-27203",
      "type": "CVE"
    }
  ],
  "references": [
    "https://github.com/YosefHayim/ebay-mcp/security/advisories/GHSA-97rm-xj73-33jh",
    "https://github.com/YosefHayim/ebay-mcp/commit/aab0bda75ea9dd27aa37d0d8524d7cf41b3c4a9a",
    "https://github.com/advisories/GHSA-97rm-xj73-33jh"
  ],
  "published_at": "2026-02-19T20:27:11Z",
  "updated_at": "2026-02-19T20:27:13Z",
  "github_reviewed_at": "2026-02-19T20:27:11Z",
  "nvd_published_at": null,
  "withdrawn_at": null,
  "vulnerabilities": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "ebay-mcp"
      },
      "vulnerable_version_range": "<= 1.7.2",
      "first_patched_version": null,
      "vulnerable_functions": []
    }
  ],
  "cvss_severities": {
    "cvss_v3": {
      "vector_string": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H",
      "score": 8.3
    },
    "cvss_v4": {
      "vector_string": null,
      "score": 0.0
    }
  },
  "cwes": [
    {
      "cwe_id": "CWE-15",
      "name": "External Control of System or Configuration Setting"
    },
    {
      "cwe_id": "CWE-74",
      "name": "Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')"
    }
  ],
  "credits": [
    {
      "user": {
        "login": "nedlir",
        "id": 66902031,
        "node_id": "MDQ6VXNlcjY2OTAyMDMx",
        "avatar_url": "https://avatars.githubusercontent.com/u/66902031?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/nedlir",
        "html_url": "https://github.com/nedlir",
        "followers_url": "https://api.github.com/users/nedlir/followers",
        "following_url": "https://api.github.com/users/nedlir/following{/other_user}",
        "gists_url": "https://api.github.com/users/nedlir/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/nedlir/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/nedlir/subscriptions",
        "organizations_url": "https://api.github.com/users/nedlir/orgs",
        "repos_url": "https://api.github.com/users/nedlir/repos",
        "events_url": "https://api.github.com/users/nedlir/events{/privacy}",
        "received_events_url": "https://api.github.com/users/nedlir/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "type": "reporter"
    }
  ],
  "cvss": {
    "vector_string": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H",
    "score": 8.3
  }
}
