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.9#116

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

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

Conversation

@dependabot-preview
Copy link
Contributor

Bumps mongoose from 4.13.20 to 5.9.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.9.9 / 2020-04-13

  • fix(model): make Model.bulkWrite accept strict option #8782 #8788 AbdelrahmanHafez
  • fix(virtual): make populated virtual getter return value when it is passed in #8775 #8774 makinde
  • fix(document): handle validating document array whose docs contain maps and nested paths #8767
  • fix(document): skip discriminator key when overwriting a document #8765
  • fix(populate): support clone option with lean #8761 #8760
  • docs(transactions): use endSession() in all transactions examples #8741
  • docs(queries): expand streaming section to include async iterators, cursor timeouts, and sesssion idle timeouts #8720
  • docs(model+query+findoneandupdate): add docs for returnOriginal option #8766
  • docs(model): fix punctuation #8788 dandv
  • docs: fix typos #8780 #8799 dandv

5.9.8 / 2020-04-06

  • fix(map): run getters when calling Map#get() #8730
  • fix(populate): handle refPath function in embedded discriminator #8731
  • fix(model): allow setting timestamps to false for bulkWrite #8758 #8745 AbdelrahmanHafez
  • fix(model): pass custom options to exists() when no changes to save #8764 #8739 AbdelrahmanHafez
  • fix(update): respect useNestedStrict: false when updating a single nested path #8735
  • fix(schema): allow modelName as a schema path, since modelName is a static property on models #7967
  • docs(promises): add section about using exec() with queries and await #8747
  • docs(connections): clarify that connectTimeoutMS doesn't do anything with useUnifiedTopology, should use serverSelectionTimeoutMS #8721
  • chore: upgrade mpath -> 0.7.0 #8762 roja548

5.9.7 / 2020-03-30

  • fix(map): avoid infinite loop when setting a map of documents to a document copied using spread operator #8722
  • fix(query): clean stack trace for filter cast errors so they include the calling file #8691
  • fix(model): make bulkWrite updates error if strict and upsert are set and filter contains a non-schema path #8698
  • fix(cast): make internal castToNumber() allow undefined #8725 p3x-robot

5.9.6 / 2020-03-23

  • fix(document): allow saving document with nested document array after setting nestedArr.0 #8689
  • docs(connections): expand section about multiple connections to describe patterns for exporting schemas #8679
  • docs(populate): add note about execPopulate() to "populate an existing document" section #8671 #8275
  • docs: fix broken links #8690 AbdelrahmanHafez
  • docs(guide): fix typos #8704 MateRyze
  • docs(guide): fix minor typo #8683 pkellz

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
... (truncated)
Commits
  • b302138 chore: release 5.9.9
  • 0a83a9f Merge pull request #8788 from dandv/patch-4
  • 89a70e8 chore: update opencollective sponsors
  • 9bb0274 docs(lib/model): fix punctuation
  • 2a73b75 Merge pull request #8782 from AbdelrahmanHafez/bulkWrite-strict
  • b743498 test(transactions): use endSession() in all transactions examples
  • 95351e7 docs(queries): expand streaming section to include async iterators, cursor ti...
  • b107d90 fix(populate): support clone option with lean
  • c95a2f1 fix(document): skip discriminator key when overwriting a document
  • 7dc8a0a style: fix lint
  • 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.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.20...5.9.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 Apr 14, 2020
@dependabot-preview
Copy link
Contributor Author

Superseded by #118.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.9.9 branch April 21, 2020 06:27
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