NODE-7447ClosedFixed

Address ENGSEC-670: OIDC Host Allowlist Bypass via Improper Suffix Matching

See ENGSEC-670. To be addressed by March 22. h2. Summary The MongoDB Node.js driver's OIDC authentication includes a host allowlist mechanism to ensure tokens are only sent to trusted servers. The hostMatchesWildcards() function validates hostnames against wildcard patterns (e.g., *.mongodb.net). However, the implementation uses a permissive suffix match that does not enforce a dot-boundary, allowing unrelated domains that merely end with the allowed suffix to pass validation. For example

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
7.2.07.1.1
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
needs-refinementnode-internal