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.10. 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.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

  • fix(update): strip out unused array filters to avoid "filter was not used in the update" error #9468
  • fix(mongoose): allow setting autoCreate as a global option to be consistent with autoIndex #9466

5.10.8 / 2020-10-05

  • fix(schema): handle setting nested paths underneath single nested subdocs #9459
  • fix(schema+index): allow calling mongoose.model() with schema from a different Mongoose module instance #9449
  • fix(transaction): fix saving new documents w/ arrays in transactions #9457 PenguinToast
  • fix(document): track reason on cast errors that occur while init-ing a document #9448
  • fix(model): make createCollection() not throw error when collection already exists to be consistent with v5.9 #9447
  • docs(connections): add SSL connections docs #9443
  • docs(query_casting): fix typo #9458 craig-davis

5.10.7 / 2020-09-24

  • fix(schema): set correct path and schema on nested primitive arrays #9429
  • fix(document): pass document to required validator so required can use arrow functions #9435 AbdelrahmanHafez
  • fix(document): handle required when schema has property named isSelected #9438
  • fix(timestamps): allow using timestamps when schema has a property named 'set' #9428
  • fix(schema): make Schema#clone() use parent Mongoose instance's Schema constructor #9426

5.10.6 / 2020-09-18

  • fix(populate): handle options.perDocumentLimit option same as perDocumentLimit when calling populate() #9418
  • fix(document): invalidate path if default function throws an error #9408
  • fix: ensure subdocument defaults run after initial values are set when initing #9408
  • docs(faq+queries): add more detail about duplicate queries, including an faq entry #9386
  • docs: replace var with let and const in docs and test files #9414 jmadankumar
  • docs(model+query): document using array of strings as projection #9413
  • docs(middleware): add missing backtick #9425 tphobe9312

5.10.5 / 2020-09-11

  • fix: bump mongodb -> 3.6.2 #9411 AbdelrahmanHafez
  • fix(query+aggregate+cursor): support async iteration over a cursor instance as opposed to a Query or Aggregate instance #9403
  • fix(document): respect child schema minimize if toObject() is called without an explicit minimize #9405
  • docs(guide): use const instead of var #9394 nainardev
  • docs(query): link to lean, findOneAndUpdate, query casting tutorials from query docs #9410

5.10.4 / 2020-09-09

Commits
  • 1264d7e chore: release 5.10.10
  • 43869bf Merge pull request #9497 from AbdelrahmanHafez/gh-9496
  • 99959f1 Merge pull request #9488 from tareqdayya/patch-1
  • 3941862 fix(aggregate): when using $search with discriminators, add $match as the 2...
  • 82311de fix(connection): make connection.then(...) resolve to a connection instance r...
  • f52c589 test(connection): repro #9496
  • 86aace1 fix(schema): handle objects without a constructor property re: #9471
  • 39e54ef fix(query): cast $nor within $elemMatch
  • d06388f test(query): repro #9479
  • e0867ab Update connections.pug
  • 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.10. **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.10)

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

Superseded by #191.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.10.10 branch October 28, 2020 09:26
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.

0 participants