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

CVE-2026-114123: D365 F&O MCP Server Auth Bypass Vulnerability

CVE-2026-114123 is an authentication bypass flaw in D365 F&O MCP Server that exposes proprietary X++ source code and metadata to unauthenticated users. This article covers the technical details, affected versions, and mitigation strategies.

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-114123 Overview

CVE-2026-114123 is a missing authentication vulnerability [CWE-306] in the D365 F&O MCP Server, a Model Context Protocol server used to query Dynamics 365 Finance & Operations X++ code and metadata. Versions prior to 1.11.0 ship an Azure one-click deployment (infrastructure/azuredeploy.json and infrastructure/main.bicep) that defaults the apiKey parameter to an empty string. When operators accept this default, the resulting App Service exposes the /mcp endpoint to the internet without authentication. Attackers can issue anonymous JSON-RPC tools/call requests and retrieve indexed proprietary X++ source, metadata, and security-role structure.

Critical Impact

Unauthenticated network attackers can read proprietary X++ source snippets, extension wiring, security-role data, and labels indexed from PackagesLocalDirectory.

Affected Products

  • D365 F&O MCP Server versions prior to 1.11.0
  • Deployments using the shipped infrastructure/azuredeploy.json Azure one-click template
  • Deployments using the shipped infrastructure/main.bicep template without network restrictions or upstream authentication

Discovery Timeline

  • 2026-10-21 - CVE-2026-114123 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114123

Vulnerability Analysis

The D365 F&O MCP Server exposes a JSON-RPC interface at /mcp that services read and search tools over an indexed Dynamics 365 Finance & Operations codebase. The documented Azure one-click deployment leaves the apiKey parameter blank by default and forwards that empty value to the App Service API_KEY setting. The HTTP listener in src/index.ts binds to 0.0.0.0, making the service reachable from the public internet. When API_KEY is unset or empty, src/middleware/apiKeyAuth.ts short-circuits authentication and passes every request through. The MCP_SERVER_MODE=read-only setting restricts write operations but does not gate anonymous callers from read tools.

Root Cause

The root cause is missing authentication by default [CWE-306]. The deployment templates treated the API key as optional and the middleware interpreted an empty key as "authentication disabled" rather than refusing to start. The server also bound to all interfaces regardless of whether a key was configured, so an operator accepting defaults produced a public, anonymous endpoint.

Attack Vector

An attacker locates an exposed App Service hosting the MCP server and issues JSON-RPC tools/call requests to /mcp. Reachable tools include search, get_object_info, batch_get_info, extension_info, security_info, find_references, and find_event_handlers. The responses can disclose business logic, extension and event-handler wiring, security-role and privilege structure, and labels originally indexed from PackagesLocalDirectory.

typescript
// Patch: src/config/settings.ts — gate the startup guard on the bind address
// Default bind now follows the API key: 0.0.0.0 once a key (or
// ALLOW_UNAUTHENTICATED) is configured, 127.0.0.1 otherwise.
// Binding to a public interface without a key is refused at startup.
default: '0.0.0.0',

Source: GitHub Commit 384394a81e

text
// Patch: infrastructure/main.bicep — require API_KEY instead of defaulting to no auth
@description('Azure region for resources. Leave empty to inherit the resource group location.')
param location string = ''

var resolvedLocation = empty(location) ? resourceGroup().location : location

Source: GitHub Commit e70bd051f8

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-114123

Indicators of Compromise

  • Inbound HTTP POST requests to /mcp on the App Service without an Authorization or API key header.
  • JSON-RPC request bodies invoking tools/call with method names such as search, get_object_info, batch_get_info, extension_info, security_info, find_references, or find_event_handlers.
  • App Service configuration where API_KEY is empty and no upstream authentication layer is present.

Detection Strategies

  • Audit the Azure App Service application settings for an empty or missing API_KEY on any deployment of d365fo-mcp-server prior to 1.11.0.
  • Review App Service access logs for anonymous requests to /mcp originating from unexpected IP ranges.
  • Correlate outbound data volume from the App Service against baseline usage to spot bulk indexing or enumeration.

Monitoring Recommendations

  • Forward App Service HTTP logs and platform logs to a central SIEM and alert on unauthenticated /mcp activity.
  • Monitor for high-frequency tools/call invocations consistent with automated enumeration of X++ objects.
  • Track changes to App Service configuration, including API_KEY, MCP_SERVER_MODE, and network access restrictions.

How to Mitigate CVE-2026-114123

Immediate Actions Required

  • Upgrade the D365 F&O MCP Server to version 1.11.0 or later.
  • Set a strong, non-empty API_KEY on the App Service and rotate any key that was previously exposed.
  • Restrict public network access to the App Service using access restrictions, private endpoints, or an upstream authenticating proxy.
  • Review App Service logs for prior anonymous /mcp activity and treat exposed X++ source and metadata as potentially disclosed.

Patch Information

The issue is fixed in GitHub Release v1.11.0. The fix requires API_KEY to be set in the Azure deployment templates and gates the HTTP bind address on the presence of an API key, as described in the GitHub Security Advisory GHSA-8764-fh3m-wf7g. Startup is refused when the server would bind to a public interface without authentication configured.

Workarounds

  • Configure a non-empty API_KEY on existing deployments and require it on all requests to /mcp.
  • Place the App Service behind an upstream authenticating proxy or API gateway that enforces identity before traffic reaches the MCP server.
  • Apply Azure App Service access restrictions or private endpoints so that only trusted networks can reach the server.
  • Rebind the HTTP listener to 127.0.0.1 where the server only needs local access from a co-located client.
bash
# Set a strong API key on the App Service and restrict public access
az webapp config appsettings set \
  --resource-group <rg-name> \
  --name <app-name> \
  --settings API_KEY="$(openssl rand -hex 32)" MCP_SERVER_MODE="read-only"

az webapp config access-restriction add \
  --resource-group <rg-name> \
  --name <app-name> \
  --rule-name "allow-corp" --action Allow --ip-address <corp-cidr> --priority 100

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.