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.20 to 5.9.19. 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.9.19 / 2020-06-15

  • fix: upgrade mongodb driver -> 3.5.9 #9124 AbdelrahmanHafez
  • fix: copy required validator on single nested subdoc correctly when calling Schema#clone() #8819
  • fix(discriminator): handle tiedValue when casting update on nested paths #9108
  • fix(model): allow empty arrays for bulkWrite #9132 #9131 AbdelrahmanHafez
  • fix(schema): correctly set partialFilterExpression for nested schema indexes #9091
  • fix(castArrayFilters): handle casting on all fields of array filter #9122 lafeuil
  • fix(update): handle nested path createdAt when overwriting parent path #9105
  • docs(subdocs): add some notes on the difference between single nested subdocs and nested paths #9085
  • docs(subdocs): improve docs on typePojoToMixed #9085
  • docs: add note about connections in globalSetup with Jest #9063
  • docs: add schema and how to set default sub-schema to schematype options #9111 dfle
  • docs(index): use const instead of var in examples #9125 dmcgrouther
  • docs: corrected markdown typo #9117

5.9.18 / 2020-06-05

  • fix: improve atlas error in the event of incorrect password #9095
  • docs: add edit link for all docs pages #9058
  • fix(document): allow accessing $locals when initializing document #9099 #9098 AbdelrahmanHafez
  • fix(query): make setDefaultsOnInsert a mongoose option so it doesn't end up in debug output #9086
  • docs(connection+index): add serverSelectionTimeoutMS and heartbeatFrequencyMS to connect() and openUri() options #9071
  • docs(geojson): add notes about geojson 2dsphere indexes #9044
  • docs: make active page bold in navbar #9062
  • docs: correct a typo in a code snippet #9089 Elvis-Sarfo

5.9.17 / 2020-06-02

  • fix(document): avoid tracking changes like splice() on slice()-ed arrays #9011
  • fix(populate): make populating a nested path a no-op #9073
  • fix(document): clear nested cast errors when overwriting an array path #9080
  • fix: upgrade mongodb to v3.5.8 #9069 AbdelrahmanHafez
  • docs(document): add validateModifiedOnly to Document#save(), Document#validateSync() and Document#validate() #9078 AbdelrahmanHafez
  • docs(faq): fix typo #9075 tigransimonyan
  • docs: document all parameters to .debug #9029 dandv
  • docs: fix property value in Getters example #9061 ismet

5.9.16 / 2020-05-25

  • perf(error): convert errors to classes extending Error for lower CPU overhead #9021 zbjornson
  • fix(query): throw CastError if filter $and, $or, $nor contain non-object values #8948
  • fix(bulkwrite): cast filter & update to schema after applying timestamps #9030 AbdelrahmanHafez
  • fix(document): don't overwrite defaults with undefined keys in nested documents #9039 vitorhnn
  • fix(discriminator): remove discriminator schema nested paths pulled from base schema underneath a mixed path in discriminator schema #9042
  • fix(model): make syncIndexes() not drop index if all user-specified collation options are the same #8994
  • fix(document): make internal $__.scope property a symbol instead to work around a bug with fast-safe-stringify #8955
  • docs: model.findByIdAndUpdate() 'new' param fix #9026 dandv

5.9.15 / 2020-05-18

... (truncated)
Commits
  • d7f1068 chore: release 5.9.19
  • d289f07 Merge pull request #9132 from AbdelrahmanHafez/gh-9131
  • 075efbd style: fix lint
  • b493dc8 Merge branch 'master' of github.com:Automattic/mongoose
  • cdd41b1 fix(schema): copy requiredValidator when cloning schema with a copy of `val...
  • 21c2c4e test(schema): repro #8819
  • 1ee8bc2 fix(model): allow empty arrays for bulkWrite
  • eabdccb test(model): repro #9131
  • 473bc36 test: fix tests
  • e2e0755 fix(schema): correctly set partialFilterExpression for nested schema indexes
  • 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.20 to 5.9.19. **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.20...5.9.19)

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

Superseded by #139.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.9.19 branch June 23, 2020 06: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