{"id":"CVE-2026-62155","aliases":[],"title":"mongo_fdw connection URI injection through unencoded option values","originalDescription":"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":{"cvss":5.3,"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","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00617,"percentile":0.43902},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"MongoDB Foreign Data Wrapper (mongo_fdw)","range":">=0, <5.6.0","fixed":"5.6.0"}],"references":[{"url":"https://www.enterprisedb.com/docs/security/advisories/cve202662155/","type":"vendor-advisory"},{"url":"https://github.com/EnterpriseDB/mongo_fdw/releases/tag/REL-5_6_0","type":"release-notes"}],"sources":[{"name":"nvd","at":"2026-11-25T20:25:28.767Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62155","license":"NVD terms of use","firstSeenAt":"2026-11-25T17:40:40.489Z"},{"name":"osv","at":"2026-11-26T21:45:20.823Z","url":"https://osv.dev/vulnerability/CVE-2026-62155","license":"CC-BY 4.0","firstSeenAt":"2026-11-26T21:12:09.295Z"},{"name":"cvelistV5","at":"2026-11-28T22:41:00.147Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-62155","license":"CVE Terms of Use","firstSeenAt":"2026-11-25T17:04:55.518Z"}],"firstSeenAt":"2026-11-25T17:04:55.518Z","publishedAt":"2026-11-25T16:36:23.402Z","modifiedAt":"2026-11-26T21:02:20.420Z"}