PT-2026-31451 · Unknown+1 · Mcp-From-Openapi+2

Published

2026-04-08

·

Updated

2026-04-08

·

CVE-2026-39885

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions: FrontMCP versions prior to 2.3.0
Description: The mcp-from-openapi library uses @apidevtools/json-schema-ref-parser to dereference $ref pointers in OpenAPI specifications without URL restrictions. A malicious OpenAPI specification with $ref values pointing to internal network addresses, cloud metadata endpoints, or local files can cause the library to fetch these resources during the initialize() call, leading to Server-Side Request Forgery (SSRF) and local file read attacks. The initialize() function is vulnerable. The library fetches any URL encountered in $ref values, including http:// and https:// URLs (potentially exposing internal services or cloud metadata) and file:// URLs (allowing local filesystem access). An attacker can exploit this by crafting an OpenAPI specification containing a $ref to a cloud metadata endpoint (e.g., http://169.254.169.254/latest/meta-data/iam/security-credentials/) to potentially leak cloud credentials, or a $ref to a local file (e.g., file:///etc/passwd) to read arbitrary files. The impact includes cloud credential theft, internal network scanning, and local file read, requiring no special privileges beyond providing a crafted OpenAPI specification.
Recommendations: Pass resolver options to dereference() to restrict allowed protocols and hosts, such as disabling the file:// protocol and limiting http:// and https:// access. Alternatively, disable all external resolution by setting resolve: { file: false, http: false, https: false }.

Exploit

Fix

SSRF

Weakness Enumeration

Related Identifiers

CVE-2026-39885
GHSA-V6PH-XCQ9-QXXJ

Affected Products

@Apidevtools/Json-Schema-Ref-Parser
Frontmcp
Mcp-From-Openapi