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.11#120

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

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

Conversation

@dependabot-preview
Copy link
Contributor

Bumps mongoose from 4.13.20 to 5.9.11. 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.11 / 2020-04-30

  • fix: upgrade mongodb driver -> 3.5.7 #8842 AbdelrahmanHafez
  • fix: validate nested paths on Model.validate(...) #8848 AbdelrahmanHafez
  • fix(populate): make doc.execPopulate(options) a shorthand for doc.populate(options).execPopulate() #8840 AbdelrahmanHafez
  • fix(model): return validation errors when all docs are invalid & rawResult set #8853 tusharf5
  • fix(schemaType): treat select: null or select: undefined as not specified #8850 AbdelrahmanHafez
  • fix: fix stream close event listener being called multiple times in Node 14 #8835 AbdelrahmanHafez
  • fix(populate): handle clone with lean when setting a path to null #8807
  • docs(faq): clarify setting paths under document arrays with markModified() #8854
  • docs: fix race condition in creating connection for lambda #8845 AbdelrahmanHafez
  • docs: add options.path for Model.populate(...) #8833 AbdelrahmanHafez
  • docs: use ES6 classes for custom schema type example #8802

5.9.10 / 2020-04-20

  • fix: upgrade mongodb -> 3.5.6, bson -> 1.1.4 #8719
  • fix(document): avoid calling $set() on object keys if object path isn't in schema #8751
  • fix(timestamps): handle timestamps on doubly nested subdocuments #8799
  • fix(schematype): throw error if default is set to a schema instance #8751
  • fix: handle $elemMatch projection with select: false in schema #8818 #8806 AbdelrahmanHafez
  • docs: make FAQ questions more linkable #8825 AbdelrahmanHafez
  • docs(validation): use init() as opposed to once('index') in unique example #8816
  • docs: clarify insertMany() return value #8820 dandv
  • docs(populate+query): fix typos #8793 #8794 dandv
  • docs(model): document skipId parameter #8791 AbdelrahmanHafez

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
... (truncated)
Commits
  • a523950 chore: release 5.9.11
  • 10d6fa8 Merge pull request #8893 from AbdelrahmanHafez/patch-4
  • 447ff9e upgrade mongodb to v3.5.7
  • e8dc41c Merge pull request #8876 from AbdelrahmanHafez/eslint-arrow
  • 44dd876 automatically add arrow spaces by eslint
  • 798a774 Merge pull request #8861 from AbdelrahmanHafez/patch-1
  • 64d472b Merge pull request #8853 from tusharf5/master
  • 224dcd0 Merge pull request #8848 from AbdelrahmanHafez/gh-8821
  • fa0a67c Remove unnecessary { strict: false } from test
  • 8b055cf fix(populate): handle clone with lean when setting a path to null
  • 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.11. **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.11)

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

Superseded by #123.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.9.11 branch May 5, 2020 06:16
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