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.18. 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.18 / 2020-11-29

5.10.17 / 2020-11-27

5.10.16 / 2020-11-25

  • fix(connection): copy config options from connection rather than base connection when calling useDb() #9569
  • fix(schema): support of for array type definitions to be consistent with maps #9564
  • docs(dates): fix broken example reference #9557 kertof
  • docs(virtualtype): remove unintentional h2 tag re: tj/dox#60 #9568

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
Commits
  • 0ad1423 chore: release 5.10.18
  • c956bc2 Merge pull request #9598 from AbdelrahmanHafez/gh-9597
  • 5ff54cc fix(connection): connect and disconnect can be used destructured re #9597
  • 038b65e test(connection): repro #9597
  • 5d7a28d refactor(model): use _promiseOrCallback() scoped to Mongoose instance for m...
  • 5365a9c chore: release 5.10.17
  • a99a6f4 chore: update highlight.js re: security
  • 6ba449b refactor(mongoose): use promiseOrCallback() scoped to Mongoose instance re:...
  • 3c24264 Merge pull request #9587 from AbdelrahmanHafez/gh-9585
  • bafa3d5 fix(document): fix missing fields after undefined field re #9585
  • 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.18. **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.18)

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 30, 2020
@dependabot-preview
Copy link
Contributor Author

Superseded by #205.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.10.18 branch December 1, 2020 06:36
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