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