CVE-2026-62155 — EnterpriseDB MongoDB Foreign Data Wrapper (mongo fdw)
One of 2 EnterpriseDB MongoDB Foreign Data Wrapper (mongo fdw) vulnerabilities published together by NVD: our article covers all of them.
DatabasesVulnerabilitiesSummary
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.
Severity breakdown
Medium · 5.3
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- yes, a normal user account
- User action needed
- no
- Impact
- low on confidentiality and integrity, none on availability
- Impact on other systems
- none
Weakness
- CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| EnterpriseDB MongoDB Foreign Data Wrapper (mongo fdw) | < 5.6.0 | 5.6.0 |
References by type
Patches and fixed releases
Other references
Affected
- EnterpriseDB MongoDB Foreign Data Wrapper (mongo fdw)
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-62155?
mongofdw 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. Weakness type: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74).
How severe is CVE-2026-62155?
CVE-2026-62155 has a CVSS 4.0 base score of 5.3 (medium), from the CNA. An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-62155 being exploited?
Not as far as is known: CVE-2026-62155 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-62155?
EnterpriseDB MongoDB Foreign Data Wrapper (mongo fdw) < 5.6.0 (fixed in 5.6.0).
How do I fix CVE-2026-62155?
Update to a fixed release: EnterpriseDB MongoDB Foreign Data Wrapper (mongo fdw) 5.6.0.