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.11.9. 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.11.9 / 2020-12-28

  • fix(document): keeps atomics when assigning array to filtered array #9651
  • fix(document): apply defaults option to subdocument arrays #9736
  • fix(index.d.ts): allow passing generic parameter to overwrite lean() result type #9728
  • fix(index.d.ts): add missing pre hook for findOneAndUpdate #9743 sahasayan
  • fix(index.d.ts): schema methods & statics types #9725
  • fix(index.d.ts): allow id paths with non-string values in TypeScript #9723
  • fix(index.d.ts): support calling createIndexes() and ensureIndexes() with just callback #9706
  • fix(index.d.ts): include __v in LeanDocuments #9687
  • fix(index.d.ts): add missing Aggregate#append() #9714
  • chore: add eslint typescript support and lint index.d.ts file #9729 simllll
  • chore: add Github Actions #9688 YC

5.11.8 / 2020-12-14

  • fix(index.d.ts): add missing single document populate #9696 YC
  • fix(index.d.ts): make options optional for toObject #9700
  • fix(index.d.ts): added missing match and model methods in Aggregate class #9710 manekshms
  • fix(index.d.ts): make options optional for createIndexes() and ensureIndexes() #9706
  • fix(index.d.ts): support passing a function to ValidateOpts.message #9697
  • docs: add media query for ::before on headings #9705 #9704 YC

5.11.7 / 2020-12-10

  • fix(document): ensure calling get() with empty string returns undefined for mongoose-plugin-autoinc #9681
  • fix(model): set isNew to false for documents that were successfully inserted by insertMany with ordered = false when an error occurred #9677
  • fix(index.d.ts): add missing Aggregate#skip() & Aggregate#limit() #9692 sahasayan
  • fix(index.d.ts): make Document#id optional so types that use id can use Model<IMyType & Document> #9684

5.11.6 / 2020-12-09

  • fix(middleware): ensure sync errors in pre hooks always bubble up to the calling code #9659
  • fix(index.d.ts): allow passing ObjectId properties as strings to create() and findOneAndReplace() #9676
  • fix(index.d.ts): allow calling mongoose.model() and Connection#model() with model as generic param #9685 #9678 sahasayan
  • fix(index.d.ts): Fix return type of Model#aggregate() #9680 orgads
  • fix(index.d.ts): optional next() parameter for post middleware #9683 isengartz
  • fix(index.d.ts): allow array of validators in SchemaTypeOptions #9686 cjroebuck

5.11.5 / 2020-12-07

  • fix(map): support null in maps of subdocs #9628
  • fix(index.d.ts): support object syntax for validate #9667
  • fix(index.d.ts): Allow number for Schema expires #9670 alecgibson
  • fix(index.d.ts): allow definining arbitrary properties on SchemaTypeOpts for plugins like mongoose-autopopulate #9669
  • fix(index.d.ts): add mongoose.models #9661 #9660 AbdelrahmanHafez
  • fix(index.d.ts): allow the next() argument to be optional #9665 #9664 sahasayan
  • fix(index.d.ts): add missing VirtualType#applyGetters() and applySetters(), Schema#virtuals, Schema#childSchemas, Query#_mongooseOptions #9658
  • fix(index.d.ts): add id to LeanDocuments in case it is defined in the user's schema #9657
  • fix(index.d.ts): add missing types for hook functions #9653
Commits
  • 21f1f18 chore: release 5.11.9
  • 9780195 fix: make fix for #9651 compatible with Node.js 4.x and 5.x
  • c16f878 fix(document): keeps atomics when assigning array to filtered array
  • 71b76fe test(document): repro #9651
  • eb59a42 Merge branch 'master' of github.com:Automattic/mongoose
  • 971ffa8 Merge pull request #9688 from YC/master
  • 8a5776d chore: fix tests re: #9736
  • 8763e8b Merge pull request #9743 from sahasayan/patch-5
  • fd63d70 fix(document): apply defaults option to subdocument arrays
  • b8aef4e fix(index.d.ts): add missing pre hook for findOneAndUpdate
  • 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.11.9. **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.11.9)

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

Superseded by #221.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.11.9 branch January 5, 2021 06:35
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