Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

[Security] Bump mongoose from 4.13.20 to 5.9.5#107

Closed
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/mongoose-5.9.5
Closed

[Security] Bump mongoose from 4.13.20 to 5.9.5#107
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/mongoose-5.9.5

Conversation

@dependabot-preview
Copy link
Contributor

Bumps mongoose from 4.13.20 to 5.9.5. 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.5 / 2020-03-16

  • fix: upgrade mongodb driver -> 3.5.5 #8667 #8664 AbdelrahmanHafez
  • fix(connection): emit "disconnected" after losing connectivity to every member of a replica set with useUnifiedTopology: true #8643
  • fix(array): allow calling slice() after push() #8668 #8655 AbdelrahmanHafez
  • fix(map): avoid marking map as modified if setting key to the same value #8652
  • fix(updateValidators): don't run Mixed update validator on dotted path underneath mixed type #8659
  • fix(populate): ensure top-level limit applies if one document being populated has more than limit results #8657
  • fix(populate): throw error if both limit and perDocumentLimit are set #8661 #8658 AbdelrahmanHafez
  • docs(findOneAndUpdate): add a section about the rawResult option #8662
  • docs(guide): add section about loadClass() #8623
  • docs(query): improve Query#populate() example to clarify that sort doesn't affect the original result's order #8647

5.9.4 / 2020-03-09

  • fix(document): allow new Model(doc) to set immutable properties when doc is a mongoose document #8642
  • fix(array): make sure you can call unshift() after slice() #8482
  • fix(schema): propagate typePojoToMixed to implicitly created arrays #8627
  • fix(schema): also propagate typePojoToMixed option to schemas implicitly created because of typePojoToMixed #8627
  • fix(model): support passing background option to syncIndexes() #8645
  • docs(schema): add a section about the _id path in schemas #8625
  • docs(virtualtype+populate): document using match with virtual populate #8616
  • docs(guide): fix typo #8648 sauzy34

5.9.3 / 2020-03-02

  • fix: upgrade mongodb driver -> 3.5.4 #8620
  • fix(document): set subpath defaults when overwriting single nested subdoc #8603
  • fix(document): make calling validate() with single nested subpath only validate that single nested subpath #8626
  • fix(browser): make mongoose.model() return a class in the browser to allow hydrating populated data in the browser #8605
  • fix(model): make syncIndexes() and cleanIndexes() drop compound indexes with _id that aren't in the schema #8559
  • docs(connection+index): add warnings to explain that bufferMaxEntries does nothing with useUnifiedTopology #8604
  • docs(document+model+query): add options.timestamps parameter docs to findOneAndUpdate() and findByIdAndUpdate() #8619
  • docs: fix out of date links to tumblr #8599

5.9.2 / 2020-02-21

  • fix(model): add discriminator key to bulkWrite filters #8590
  • fix(document): when setting nested array path to non-nested array, wrap values top-down rather than bottom up when possible #8544
  • fix(document): dont leave nested key as undefined when setting nested key to empty object with minimize #8565
  • fix(document): avoid throwing error if setting path to Mongoose document with nullish _doc #8565
  • fix(update): handle Binary type correctly with runValidators #8580
  • fix(query): run deleteOne hooks only on Document#deleteOne() when setting options.document = true for Schema#pre() #8555
  • fix(document): allow calling validate() in post validate hook without causing parallel validation error #8597
  • fix(virtualtype): correctly copy options when cloning #8587
  • fix(collection): skip creating capped collection if autoCreate set to false #8566
  • docs(middleware): clarify that updateOne and deleteOne hooks are query middleware by default, not document middleware #8581
  • docs(aggregate): clarify that Aggregate#unwind() can take object parameters as well as strings #8594

5.9.1 / 2020-02-14

... (truncated)
Commits
  • 6065eff chore: release 5.9.5
  • 0f1a80a test: remove more unnecessary collections re: #8481
  • 3a7cbb1 chore: get rid of acorn devDependency re: security warning
  • 0e55fe0 style: fix lint
  • 24b6e1e test: clean up more unnecessary collections re: #8481
  • d44d123 chore: quick fix re: #8659
  • 69b4653 fix(updateValidators): don't run Mixed update validator on dotted path unde...
  • e58f695 test(updateValidators): repro #8659
  • 2c8dd51 fix(connection): emit "disconnected" after losing connectivity to every membe...
  • f70f6cf test: fix tests re: #8481
  • 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.5. **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.5)

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

Superseded by #111.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.9.5 branch March 24, 2020 06:28
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