CVE-2026-62155
published medium CVSS 4.0 · 5.3mongo_fdw connection URI injection through unencoded option values
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| EnterpriseDB | — | MongoDB Foreign Data Wrapper (mongo_fdw)0 to < 5.6.0 · Other versions: unaffected | Affected | Not stated | EDB |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- EDB · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| EnterpriseDB | MongoDB Foreign Data Wrapper (mongo_fdw) | 0 to < 5.6.0 (affected · custom)Default: unaffected | EDB · cna |
Weaknesses
2- CWE-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CWE-88 CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
2Provider assertions
2EDB · cna
mongo_fdw connection URI injection through unencoded option values
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 11c54b998bcba2be3df7535d1ffc8c5628c50cfc886c3fb4d2560025b259efea
- Ingested
- 25 Nov 2026, 17:14:12 UTC
- Source record
- Official CVE record