# MongoDB Node.js Driver v7.1.1 - Product: MongoDB Node.js Driver (https://whatsnew.fyi/product/mongodb-node-driver) - Vendor: MongoDB - Date: 2026-03-24 - Version: v7.1.1 - Original notes: https://github.com/mongodb/node-mongodb-native/releases/tag/v7.1.1 - Permalink: https://whatsnew.fyi/product/mongodb-node-driver/releases/v7.1.1 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **fixed** — Tighten OIDC ALLOWED_HOSTS wildcard matching to require full subdomain/path matches for *. and */ entries, preventing partial suffix matches from being incorrectly accepted - **fixed** — Apply TCP keep-alive and no-delay settings on TLS connections by explicitly calling setKeepAlive() and setNoDelay() on the socket after creation ##### [7.1.1](https://github.com/mongodb/node-mongodb-native/compare/v7.1.0...v7.1.1) (2026-03-24) The MongoDB Node.js team is pleased to announce version 7.1.1 of the `mongodb` package! ##### Release Notes ###### Tighten OIDC ALLOWED_HOSTS wildcard matching The OIDC ALLOWED_HOSTS wildcard handling has been fixed to require full subdomain/path matches for *. and */ entries, preventing partial suffix matches from being incorrectly accepted. ###### Fixed TCP keep-alive and no-delay settings not being applied on TLS connections Due to a [Node.js bug](https://github.com/nodejs/node/issues/62003), `tls.connect()` silently ignores `keepAlive`, `keepAliveInitialDelay`, and `noDelay` options passed through its constructor. This could cause idle connections - particularly through cloud load balancers like Azure (240s idle timeout) or AWS PrivateLink/NLB - to be dropped unexpectedly due to missing TCP keep-alive probes. The driver now explicitly calls `setKeepAlive()` and `setNoDelay()` on the socket after creation, ensuring these settings are always applied regardless of whether TLS is used. ###### Bug Fixes * **NODE-7477:** OIDC host allowlist fix ([#4896](https://github.com/mongodb/node-mongodb-native/issues/4896)) ([237c9ab](https://github.com/mongodb/node-mongodb-native/commit/237c9abf26e78d6d059b5f31177b25d4ab7e4e89)) * **NODE-7482:** explicitly call setKeepAlive and setNoDelay on socket ([#4900](https://github.com/mongodb/node-mongodb-native/issues/4900)) ([b14ba21](https://github.com/mongodb/node-mongodb-native/commit/b14ba210783a62d475086bb739a75bc7f5db37f1)) ##### Documentation * [Reference](https://docs.mongodb.com/drivers/node/current/) * [API](https://mongodb.github.io/node-mongodb-native/7.1/) * [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v7.1.1/HISTORY.md) We invite you to try the `mongodb` library immediately, and report any issues to the [NODE project](https://jira.mongodb.org/projects/NODE).