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

  • fix(document): allow setting nested path to instance of model #9392
  • fix: handle findOneAndRemove() with orFail() #9381
  • fix(schema): support setting _id option to false after instantiating schema #9390
  • docs(document): fix formatting on getChanges() #9376

5.10.3 / 2020-09-03

  • fix: upgrade mongodb -> 3.6.1 #9380 lamhieu-vk
  • fix(populate): allow populating paths underneath subdocument maps #9359
  • fix(update): handle casting map paths when map is underneath a single nested subdoc #9298
  • fix(discriminator): avoid removing nested path if both base and discriminator schema have the same nested path #9362
  • fix(schema): support Schema#add() with schematype instances with different paths #9370
  • docs(api): fix typo in Query#get() example #9372 elainewlin

5.10.2 / 2020-08-28

  • fix(model): avoid uncaught error if insertMany() fails due to server selection error #9355
  • fix(aggregate): automatically convert accumulator function options to strings #9364
  • fix(document): handle pull() on a document array when _id is an alias #9319
  • fix(queryhelpers): avoid path collision error when projecting in discriminator key with .$ #9361
  • fix: fix typo in error message thrown by unimplemented createIndex #9367 timhaley94
  • docs(plugins): note that plugins should be applied before you call mongoose.model() #7723

5.10.1 / 2020-08-26

  • fix(mongoose): fix .then() is not a function error when calling mongoose.connect() multiple times #9358 #9335 #9331
  • fix: allow calling create() after bulkWrite() by clearing internal casting context #9350
  • fix(model): dont wipe out changes made while save() is in-flight #9327
  • fix(populate): skip checking refPath if the path to populate is undefined #9340
  • fix(document): allow accessing document values from function default on array #9351
Commits
  • c83ad5f chore: release 5.10.6
  • ebdbe41 Merge branch 'master' of github.com:Automattic/mongoose
  • 014af7d fix(populate): handle options.perDocumentLimit option same as `perDocumentL...
  • 7a86066 test(model): repro #9418
  • ee19ea5 Merge pull request #9425 from tphobe9312/patch-1
  • e301787 docs: quick fix
  • 82fb708 `mongoose.model() --> mongoose.model()
  • d2abbf8 chore: update opencollective sponsors
  • 2602772 docs(faq+queries): add more detail about duplicate queries, including an faq ...
  • 1a4ddc8 docs(model+query): document using array of strings as projection
  • 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.6. **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.6)

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

Superseded by #181.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.10.6 branch September 25, 2020 03:38
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