Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.
Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).
This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).
Release Notes
mongodb/node-mongodb-native (mongodb)
### [`v4.17.0`](https://togithub.com/mongodb/node-mongodb-native/releases/tag/v4.17.0)
[Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.16.0...v4.17.0)
The MongoDB Node.js team is pleased to announce version 4.17.0 of the `mongodb` package!
#### Release Notes
##### `mongodb-js/saslprep` is now installed by default
Until v6, the driver included the `saslprep` package as an optional dependency for SCRAM-SHA-256 authentication. `saslprep` breaks when bundled with webpack because it attempted to read a file relative to the package location and consequently the driver would throw errors when using SCRAM-SHA-256 if it were bundled.
The driver now depends on `mongodb-js/saslprep`, a fork of `saslprep` that can be bundled with webpack because it includes the necessary saslprep data in memory upon loading. This will be installed by default but will only be used if SCRAM-SHA-256 authentication is used.
##### Remove credential availability on `ConnectionPoolCreatedEvent`
In order to avoid mistakenly printing credentials the `ConnectionPoolCreatedEvent` will replace the credentials option with an empty object. The credentials are still accessble via MongoClient options: `client.options.credentials`.
##### Features
- **NODE-5272:** do not create or drop ecc collections ([#3678](https://togithub.com/mongodb/node-mongodb-native/issues/3678)) ([d26ad61](https://togithub.com/mongodb/node-mongodb-native/commit/d26ad6166ae58c9976770eec84f32f9c2c17a0f3))
- **NODE-5398:** use mongodb-js/saslprep instead of saslprep ([#3820](https://togithub.com/mongodb/node-mongodb-native/issues/3820)) ([5244711](https://togithub.com/mongodb/node-mongodb-native/commit/5244711723cc7b05c50dac6ba4b7363b5af2ac37))
##### Bug Fixes
- **NODE-5262:** AWS Lambda metadata detection logic is too permissive ([#3683](https://togithub.com/mongodb/node-mongodb-native/issues/3683)) ([c0c3d99](https://togithub.com/mongodb/node-mongodb-native/commit/c0c3d99784fc487f1cbe0eb02a63c58a1242d872))
- **NODE-5311:** construct error messages for AggregateErrors in Node16+ ([#3683](https://togithub.com/mongodb/node-mongodb-native/issues/3683)) ([98b7bdf](https://togithub.com/mongodb/node-mongodb-native/commit/98b7bdf2d6c08ba9470bbda0fad3251ea0a08949))
- **NODE-5316:** prevent parallel topology creation in MongoClient.connect ([#3696](https://togithub.com/mongodb/node-mongodb-native/issues/3696)) ([e13038d](https://togithub.com/mongodb/node-mongodb-native/commit/e13038d1c7246e95b32993fc97331713b542fd74))
- Thank you [@clemclx](https://togithub.com/clemclx) for contributing this fix! π
- **NODE-5356:** prevent scram auth from throwing TypeError if saslprep is not a function ([#3732](https://togithub.com/mongodb/node-mongodb-native/issues/3732)) ([2d028af](https://togithub.com/mongodb/node-mongodb-native/commit/2d028af31d17a25a16c1ef73749a266fe7cf3a33))
- **NODE-5536:** remove credentials from ConnectionPoolCreatedEvent options ([#3812](https://togithub.com/mongodb/node-mongodb-native/issues/3812)) ([2910dca](https://togithub.com/mongodb/node-mongodb-native/commit/2910dcae38ce29e0ee5afc497ac146de2a4bb984))
#### Documentation
- [Reference](https://docs.mongodb.com/drivers/node/current/)
- [API](https://mongodb.github.io/node-mongodb-native/4.17/)
- [Changelog](https://togithub.com/mongodb/node-mongodb-native/blob/v4.17.0/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).
### [`v4.16.0`](https://togithub.com/mongodb/node-mongodb-native/releases/tag/v4.16.0)
[Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.15.0...v4.16.0)
The MongoDB Node.js team is pleased to announce version 4.16.0 of the `mongodb` package!
##### Features
- **NODE-5159:** add FaaS env information to client metadata ([#3639](https://togithub.com/mongodb/node-mongodb-native/issues/3639)) ([e0b20f1](https://togithub.com/mongodb/node-mongodb-native/commit/e0b20f1ba4c0d8826077703a3cd77936b9be7dfd))
- **NODE-5199:** add alternative runtime detection to client metadata ([#3647](https://togithub.com/mongodb/node-mongodb-native/issues/3647)) ([fba16ad](https://togithub.com/mongodb/node-mongodb-native/commit/fba16adb52f2ef37e87ea64bd6163711d0f09b84))
##### Bug Fixes
- **NODE-5161:** metadata duplication in handshake ([#3628](https://togithub.com/mongodb/node-mongodb-native/issues/3628)) ([b790142](https://togithub.com/mongodb/node-mongodb-native/commit/b79014286c714291a1d16f12c6397e545411da0f))
- **NODE-5200:** relax SRV record validation to account for a dot suffix ([#3640](https://togithub.com/mongodb/node-mongodb-native/issues/3640)) ([4272c43](https://togithub.com/mongodb/node-mongodb-native/commit/4272c43aed8790edcc38c69004e227c97117076a))
#### Documentation
- [Reference](https://docs.mongodb.com/drivers/node/4.16/)
- [API](https://mongodb.github.io/node-mongodb-native/4.16/)
- [Changelog](https://togithub.com/mongodb/node-mongodb-native/blob/v4.16.0/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).
### [`v4.15.0`](https://togithub.com/mongodb/node-mongodb-native/releases/tag/v4.15.0)
[Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.14.0...v4.15.0)
The MongoDB Node.js team is pleased to announce version 4.15.0 of the mongodb package!
##### Features
- **NODE-5054:** add AssumeRoleWithWebIdentity support to 4x driver ([#3566](https://togithub.com/mongodb/node-mongodb-native/issues/3566)) ([8a8c386](https://togithub.com/mongodb/node-mongodb-native/commit/8a8c386a8dc9263aa68826a8705c7800752a7153))
##### Bug Fixes
- **NODE-5097:** set timeout on write and reset on message ([#3590](https://togithub.com/mongodb/node-mongodb-native/issues/3590)) ([2d3576b](https://togithub.com/mongodb/node-mongodb-native/commit/2d3576bf154843f0b8f63710c530d07cdc7a2ea6))
#### Documentation
- Reference: https://docs.mongodb.com/drivers/node/current/
- API: https://mongodb.github.io/node-mongodb-native/4.15/
- Changelog: [HISTORY.md](https://togithub.com/mongodb/node-mongodb-native/blob/v4.15.0/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).
Configuration
π Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
4.14.0
->4.17.0
GitHub Vulnerability Alerts
CVE-2021-32050
Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.
Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).
This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).
Release Notes
mongodb/node-mongodb-native (mongodb)
### [`v4.17.0`](https://togithub.com/mongodb/node-mongodb-native/releases/tag/v4.17.0) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.16.0...v4.17.0) The MongoDB Node.js team is pleased to announce version 4.17.0 of the `mongodb` package! #### Release Notes ##### `mongodb-js/saslprep` is now installed by default Until v6, the driver included the `saslprep` package as an optional dependency for SCRAM-SHA-256 authentication. `saslprep` breaks when bundled with webpack because it attempted to read a file relative to the package location and consequently the driver would throw errors when using SCRAM-SHA-256 if it were bundled. The driver now depends on `mongodb-js/saslprep`, a fork of `saslprep` that can be bundled with webpack because it includes the necessary saslprep data in memory upon loading. This will be installed by default but will only be used if SCRAM-SHA-256 authentication is used. ##### Remove credential availability on `ConnectionPoolCreatedEvent` In order to avoid mistakenly printing credentials the `ConnectionPoolCreatedEvent` will replace the credentials option with an empty object. The credentials are still accessble via MongoClient options: `client.options.credentials`. ##### Features - **NODE-5272:** do not create or drop ecc collections ([#3678](https://togithub.com/mongodb/node-mongodb-native/issues/3678)) ([d26ad61](https://togithub.com/mongodb/node-mongodb-native/commit/d26ad6166ae58c9976770eec84f32f9c2c17a0f3)) - **NODE-5398:** use mongodb-js/saslprep instead of saslprep ([#3820](https://togithub.com/mongodb/node-mongodb-native/issues/3820)) ([5244711](https://togithub.com/mongodb/node-mongodb-native/commit/5244711723cc7b05c50dac6ba4b7363b5af2ac37)) ##### Bug Fixes - **NODE-5262:** AWS Lambda metadata detection logic is too permissive ([#3683](https://togithub.com/mongodb/node-mongodb-native/issues/3683)) ([c0c3d99](https://togithub.com/mongodb/node-mongodb-native/commit/c0c3d99784fc487f1cbe0eb02a63c58a1242d872)) - **NODE-5311:** construct error messages for AggregateErrors in Node16+ ([#3683](https://togithub.com/mongodb/node-mongodb-native/issues/3683)) ([98b7bdf](https://togithub.com/mongodb/node-mongodb-native/commit/98b7bdf2d6c08ba9470bbda0fad3251ea0a08949)) - **NODE-5316:** prevent parallel topology creation in MongoClient.connect ([#3696](https://togithub.com/mongodb/node-mongodb-native/issues/3696)) ([e13038d](https://togithub.com/mongodb/node-mongodb-native/commit/e13038d1c7246e95b32993fc97331713b542fd74)) - Thank you [@clemclx](https://togithub.com/clemclx) for contributing this fix! π - **NODE-5356:** prevent scram auth from throwing TypeError if saslprep is not a function ([#3732](https://togithub.com/mongodb/node-mongodb-native/issues/3732)) ([2d028af](https://togithub.com/mongodb/node-mongodb-native/commit/2d028af31d17a25a16c1ef73749a266fe7cf3a33)) - **NODE-5536:** remove credentials from ConnectionPoolCreatedEvent options ([#3812](https://togithub.com/mongodb/node-mongodb-native/issues/3812)) ([2910dca](https://togithub.com/mongodb/node-mongodb-native/commit/2910dcae38ce29e0ee5afc497ac146de2a4bb984)) #### Documentation - [Reference](https://docs.mongodb.com/drivers/node/current/) - [API](https://mongodb.github.io/node-mongodb-native/4.17/) - [Changelog](https://togithub.com/mongodb/node-mongodb-native/blob/v4.17.0/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). ### [`v4.16.0`](https://togithub.com/mongodb/node-mongodb-native/releases/tag/v4.16.0) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.15.0...v4.16.0) The MongoDB Node.js team is pleased to announce version 4.16.0 of the `mongodb` package! ##### Features - **NODE-5159:** add FaaS env information to client metadata ([#3639](https://togithub.com/mongodb/node-mongodb-native/issues/3639)) ([e0b20f1](https://togithub.com/mongodb/node-mongodb-native/commit/e0b20f1ba4c0d8826077703a3cd77936b9be7dfd)) - **NODE-5199:** add alternative runtime detection to client metadata ([#3647](https://togithub.com/mongodb/node-mongodb-native/issues/3647)) ([fba16ad](https://togithub.com/mongodb/node-mongodb-native/commit/fba16adb52f2ef37e87ea64bd6163711d0f09b84)) ##### Bug Fixes - **NODE-5161:** metadata duplication in handshake ([#3628](https://togithub.com/mongodb/node-mongodb-native/issues/3628)) ([b790142](https://togithub.com/mongodb/node-mongodb-native/commit/b79014286c714291a1d16f12c6397e545411da0f)) - **NODE-5200:** relax SRV record validation to account for a dot suffix ([#3640](https://togithub.com/mongodb/node-mongodb-native/issues/3640)) ([4272c43](https://togithub.com/mongodb/node-mongodb-native/commit/4272c43aed8790edcc38c69004e227c97117076a)) #### Documentation - [Reference](https://docs.mongodb.com/drivers/node/4.16/) - [API](https://mongodb.github.io/node-mongodb-native/4.16/) - [Changelog](https://togithub.com/mongodb/node-mongodb-native/blob/v4.16.0/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). ### [`v4.15.0`](https://togithub.com/mongodb/node-mongodb-native/releases/tag/v4.15.0) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.14.0...v4.15.0) The MongoDB Node.js team is pleased to announce version 4.15.0 of the mongodb package! ##### Features - **NODE-5054:** add AssumeRoleWithWebIdentity support to 4x driver ([#3566](https://togithub.com/mongodb/node-mongodb-native/issues/3566)) ([8a8c386](https://togithub.com/mongodb/node-mongodb-native/commit/8a8c386a8dc9263aa68826a8705c7800752a7153)) ##### Bug Fixes - **NODE-5097:** set timeout on write and reset on message ([#3590](https://togithub.com/mongodb/node-mongodb-native/issues/3590)) ([2d3576b](https://togithub.com/mongodb/node-mongodb-native/commit/2d3576bf154843f0b8f63710c530d07cdc7a2ea6)) #### Documentation - Reference: https://docs.mongodb.com/drivers/node/current/ - API: https://mongodb.github.io/node-mongodb-native/4.15/ - Changelog: [HISTORY.md](https://togithub.com/mongodb/node-mongodb-native/blob/v4.15.0/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).Configuration
π Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.