Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Conversation

@dependabot-preview
Copy link
Contributor

Bumps mongoose from 4.13.21 to 5.10.15. This update includes a security fix.

Vulnerabilities fixed

Sourced from The GitHub Security Advisory Database.

Moderate severity vulnerability that affects mongoose Automattic Mongoose through 5.7.4 allows attackers to bypass access control (in some applications) because any query object with a _bsontype attribute is ignored. For example, adding "_bsontype":"a" can sometimes interfere with a query filter. NOTE: this CVE is about Mongoose's failure to work around this _bsontype special case that exists in older versions of the bson parser (aka the mongodb/js-bson project).

Affected versions: < 5.7.5

Changelog

Sourced from mongoose's changelog.

5.10.15 / 2020-11-16

  • fix(array): make sure Array#toObject() returns a vanilla JavaScript array in Node.js 6+ #9540
  • fix(connection): make disconnect() stop Mongoose if it is trying to reconnect #9531
  • fix: ensure Document#overwrite() correctly overwrites maps #9549
  • fix(document): make transform work with nested paths #9544 #9543 jonathan-wilkinson
  • fix(query): maxTimeMS in count, countDocuments, distinct #9552 FlameFractal
  • fix(schema): remove warning re: increment as a schema path name #9538
  • fix(model): automatically set partialFilterExpression for indexes in discriminator schemas #9542

5.10.14 / 2020-11-12

  • fix(update): handle casting immutable object properties with $setOnInsert #9537
  • fix(discriminator): overwrite instead of merge if discriminator schema specifies a path is single nested but base schema has path as doc array #9534
  • docs(middleware): clarify that you need to set both document and query on remove hooks to get just document middleware #9530 mustafaKamal-fe
  • docs(CONTRIBUTING): remove mmapv1 recommendation and clean up a few other details #9529
  • refactor: remove duplicate function definition #9527 ksullivan

5.10.13 / 2020-11-06

  • fix: upgrade mongodb driver -> 3.6.3 for Lambda cold start fixes #9521 #9179 AbdelrahmanHafez
  • fix(document): correctly handle setting props to other nested props #9519

5.10.12 / 2020-11-04

  • fix(connection): catch and report sync errors in connection wrappers like startSession() #9515
  • fix(document): ignore getters when diffing values for change tracking #9501
  • fix(connection): avoid executing promise handler unless it's a function #9507 AbdelrahmanHafez
  • fix(error): throw more helpful error when connecting to a non-SSL MongoDB server with SSL enabled #9511
  • docs(model+query): clarify that deleteOne and deleteMany trigger middleware #9504
  • docs(ssl): add note about ssl defaulting to true for srv connection strings #9511

5.10.11 / 2020-10-26

  • fix(connection): when calling mongoose.connect() multiple times in parallel, make 2nd call wait for connection before resolving #9476
  • fix(map): make save() persist Map#clear() #9493
  • fix(document): avoid overwriting array subdocument when setting dotted path that isn't selected #9427
  • fix(connection): don't throw Atlas error if server discovery doesn't find any servers #9470
  • docs: update options for Model.findOneAndUpdate #9499 radamson

5.10.10 / 2020-10-23

  • fix(schema): handle merging schemas from separate Mongoose module instances when schema has a virtual #9471
  • fix(connection): make connection.then(...) resolve to a connection instance #9497 AbdelrahmanHafez
  • fix(aggregate): when using $search with discriminators, add $match as the 2nd stage in pipeline rather than 1st #9487
  • fix(query): cast $nor within $elemMatch #9479
  • docs(connection): add note about 'error' event versus 'disconnected' event #9488 tareqdayya

5.10.9 / 2020-10-09

Commits
  • 99da463 chore: release 5.10.15
  • 50945bc Merge pull request #9552 from FlameFractal/gh9551
  • 7e20382 fix(model): automatically set partialFilterExpression for indexes in discri...
  • 6d72faf fix: ensure Document#overwrite() correctly overwrites maps
  • d1dce79 test: repro #9549
  • 16a42ef chore: update opencollective sponsors
  • ffb4208 fix(query): maxTimeMS in count, countDocuments, distinct
  • 222a69f fix(connection): make disconnect() stop Mongoose if it is trying to reconnect
  • cc70256 fix(array): make sure Array#toObject() returns a vanilla JavaScript array i...
  • 3d9c4e6 fix(schema): remove warning re: increment as a schema path name
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [mongoose](https://github.com/Automattic/mongoose) from 4.13.21 to 5.10.15. **This update includes a security fix.**
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](Automattic/mongoose@4.13.21...5.10.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Nov 17, 2020
@dependabot-preview
Copy link
Contributor Author

Superseded by #203.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.10.15 branch November 26, 2020 06:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant