# CVE-2026-62155: mongo_fdw connection URI injection through unencoded option values

- Severity: Medium 5.3 (CVSS:4.0, scored by EDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-11-25T16:36:23.402Z
- Modified: 2026-11-25T20:16:05.627Z
- Weaknesses: CWE-74, CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw): before 5.6.0

## References

- <https://www.enterprisedb.com/docs/security/advisories/cve202662155/> (vendor-advisory)
- <https://github.com/EnterpriseDB/mongo_fdw/releases/tag/REL-5_6_0> (patch, release-notes)

## Sources

- CVE List: [CVE-2026-62155](https://www.cve.org/CVERecord?id=CVE-2026-62155), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-62155](https://nvd.nist.gov/vuln/detail/CVE-2026-62155), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-62155 · Whole record: https://cve.day/CVE-2026-62155.json · Rebuilt by cve.day 2026-11-25T23:18:26.583Z
