{"id":"CVE-2026-62155","aliases":["CVE-2026-62155"],"related":[],"kind":"vulnerability","state":"published","title":"mongo_fdw connection URI injection through unencoded option values","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-25T16:36:23.402Z","modified":"2026-11-25T20:16:05.627Z","severity":{"scorer":"EDB","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"EDB","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-74","CWE-88"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"5.6.0","status":"affected"}],"vendor":"EnterpriseDB","product":"MongoDB Foreign Data Wrapper (mongo_fdw)","repo":"https://github.com/EnterpriseDB/mongo_fdw","source":"cvelist"}],"references":[{"url":"https://www.enterprisedb.com/docs/security/advisories/cve202662155/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/EnterpriseDB/mongo_fdw/releases/tag/REL-5_6_0","tags":["patch","release-notes"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"EDB","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-25T17:09:15.835Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-62155","url":"https://www.cve.org/CVERecord?id=CVE-2026-62155","licence":"CVE Terms of Use","modified":"2026-11-25T17:09:34.301Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-62155","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62155","licence":"Public domain","modified":"2026-11-25T20:16:05.627Z"}],"updatedAt":"2026-11-25T23:18:26.583Z","epss":{"score":0.00617,"percentile":0.50912,"date":"2026-12-01T12:00:22.000Z"}}