CVE-2026-62155
Received Received - Intake

URI Injection in mongo_fdw Foreign Data Wrapper

Vulnerability report for CVE-2026-62155, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-25

Last updated on: 2026-11-25

Assigner: EnterpriseDB Corporation

Description

mongo_fdw builds the mongodb:// connection URI by inserting option values without percent-encoding them, so URI metacharacters (@ : / ? # & =) in a value are parsed as part of the URI structure. A role that is not a superuser but has USAGE on a foreign server can set the username and password options in its own user mapping. An @ or other metacharacter in those values can point the connection at a host the attacker controls, allowing connection redirection, credential capture and man-in-the-middle attacks. Server-level options such as the address, database and replica set can be injected the same way. The issue is fixed in mongo_fdw 5.6.0. From mongo_fdw 5.6.0, mongo_fdw builds the URI with the libmongoc URI API, which encodes credentials, and rejects URI metacharacters in the other option values.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-25
Last Modified
2026-11-25
Generated
2026-11-25
AI Q&A
2026-11-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw) From 0 (inc) to 5.6.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
CWE-88 The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

mongo_fdw constructs MongoDB connection URIs by inserting user-provided option values without percent-encoding. This allows URI metacharacters like @, :, /, ?, #, &, and = in values to be misinterpreted as part of the URI structure. A non-superuser role with USAGE on a foreign server can set username and password options in their user mapping, and metacharacters in these values can redirect connections to attacker-controlled hosts, enabling credential capture and man-in-the-middle attacks. The vulnerability also allows injection into server-level options like address, database, and replica set.

Impact Analysis

An attacker with USAGE privileges on a foreign server could steal credentials, intercept or modify data in transit, or gain unauthorized access to MongoDB instances. This could lead to data breaches, unauthorized data manipulation, or lateral movement within a network if the compromised MongoDB instance is connected to other systems.

Compliance Impact

This vulnerability could lead to unauthorized access or exposure of sensitive data, violating GDPR's data protection principles and HIPAA's security and privacy requirements. Organizations may face compliance violations, regulatory fines, or reputational damage if such an attack results in data leaks or breaches.

Mitigation Strategies

Upgrade mongo_fdw to version 5.6.0 or later to fix the URI injection vulnerability by ensuring proper encoding of option values.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-62155. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...