Skip to main content
Vulnerability Database/CVE-2026-108586

CVE-2026-108586: 1MCP Agent Auth Bypass Vulnerability

CVE-2026-108586 is an authorization bypass flaw in 1MCP Agent versions 0.20.0 through 0.39.0 that lets attackers circumvent OAuth tag-scope controls. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108586 Overview

CVE-2026-108586 is an incorrect authorization vulnerability [CWE-863] in the 1MCP Agent (@1mcp/agent), affecting versions 0.20.0 through 0.39.0. The flaw resides in OAuth tag-scope enforcement, where the server fails to properly evaluate negated advanced tag-filter expressions. Authenticated clients holding a token scoped to a single tag can submit a filter such as not <granted-tag> to enumerate and invoke tools on backend Model Context Protocol (MCP) servers outside their granted scope. The vulnerability requires valid client credentials but no user interaction and is exploitable over the network.

Critical Impact

An authenticated client with a single-tag OAuth token can bypass tag-scope enforcement and reach backend MCP servers and tools outside its granted authorization scope.

Affected Products

  • 1MCP Agent (@1mcp/agent) version 0.20.0
  • 1MCP Agent (@1mcp/agent) versions 0.20.0 through 0.39.0
  • 1MCP Agent (@1mcp/agent) version 0.39.0

Discovery Timeline

  • 2026-10-10 - CVE-2026-108586 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-108586

Vulnerability Analysis

The 1MCP Agent brokers access to backend MCP servers and uses OAuth tokens that embed tag scopes. Each token should restrict the client to the specific tags granted during authorization. The agent supports an advanced tag-filter expression language that lets clients narrow server selection with boolean operators, including negation.

The vulnerability stems from inconsistent evaluation between tag-scope enforcement and the filter engine. The scope middleware verifies that the request references the granted tag but does not account for the semantics of the not operator. A client supplies not <granted-tag>, which the filter engine interprets as the set complement of its own scope. The agent then lists and invokes tools on servers the client was never authorized to reach.

The issue is classified under CWE-863: Incorrect Authorization. Impact is limited to confidentiality and integrity of backend MCP resources; availability is not directly affected.

Root Cause

The root cause is a mismatch between the scope-authorization middleware in scopeAuthMiddleware.ts and the tag-filter evaluation logic used by inspectHelpers.ts. The middleware treats the presence of the granted tag string in the filter as evidence of authorization, instead of verifying that the resolved server set is a subset of the granted scope. Negated expressions invert the set membership check, so the authorization gate passes while the effective query targets unauthorized servers.

Attack Vector

An attacker needs a valid OAuth token issued by the 1MCP Agent with at least one granted tag. The attacker sends a tools-listing or tool-invocation request through the HTTP transport and supplies an advanced tag-filter expression that negates the granted tag. The agent routes the request to backend MCP servers outside the granted scope and returns their tool catalogs or executes requested operations. See the HackMD OAuth Scope Bypass Analysis and the Vulncheck Advisory on OAuth Bypass for a full walkthrough.

No public proof-of-concept exploit code is linked from the NVD entry at this time.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-108586

Indicators of Compromise

  • HTTP requests to 1MCP Agent endpoints containing tag-filter query parameters that use the not operator or other negation syntax.
  • Audit log entries showing a client token successfully listing or invoking tools on backend MCP servers whose tags are not present in the token's granted scope claim.
  • Unexpected spikes in tools/list or tools/call requests from clients that previously operated only within a narrow tag scope.

Detection Strategies

  • Correlate OAuth token scope claims with the resolved backend server IDs for each request and alert when the resolved set is not a subset of the granted tag set.
  • Parse tag-filter expressions during request logging and flag any filter containing negation operators until the deployment is patched.
  • Review access logs for @1mcp/agent versions between 0.20.0 and 0.39.0 for retroactive evidence of filter-based scope escapes.

Monitoring Recommendations

  • Enable verbose request logging on the 1MCP Agent HTTP transport, capturing full filter expressions, client IDs, and resolved server lists.
  • Forward 1MCP Agent logs to a centralized analytics platform and build detections that compare token scope against invoked backend tools.
  • Monitor for new client registrations followed by broad enumeration patterns across backend MCP servers.

How to Mitigate CVE-2026-108586

Immediate Actions Required

  • Inventory all deployments of @1mcp/agent and identify instances running versions 0.20.0 through 0.39.0.
  • Upgrade affected instances to a fixed release above 0.39.0 as published by the maintainers on the 1MCP Agent GitHub repository.
  • Rotate OAuth client secrets and revoke active tokens issued by vulnerable agent instances to invalidate any attacker-held sessions.
  • Review backend MCP server audit logs for evidence of unauthorized tool invocations prior to patching.

Patch Information

Refer to the 1MCP Agent GitHub repository for the current release notes and the fixed version. The vulnerable code paths are documented in the scope auth middleware source and the inspect helpers source. Deployment teams should pin the dependency to a patched version in package.json and rebuild downstream container images.

Workarounds

  • Place a reverse proxy or API gateway in front of the 1MCP Agent that rejects requests whose tag-filter query parameters contain not, !, or equivalent negation operators.
  • Restrict OAuth token issuance so that every client receives tags matching exactly the backend servers it needs, minimizing the blast radius of a successful bypass.
  • Segment backend MCP servers at the network layer so that a single compromised 1MCP Agent cannot reach servers outside the client's intended scope.
bash
# Configuration example
# Pin @1mcp/agent to a patched release and reinstall
npm install @1mcp/agent@latest
npm ls @1mcp/agent

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.