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.12#123

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

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

Conversation

@dependabot-preview
Copy link
Contributor

Bumps mongoose from 4.13.20 to 5.9.12. 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.12 / 2020-05-04

  • fix(document): report cast error on array elements with array index instead of just being a cast error for the whole array #8888
  • fix(connection): throw more helpful error in case of IP whitelisting issue with Atlas #8846
  • fix(schema): throw error on schema with reserved key with type of object #8869 AbdelrahmanHafez
  • fix(connection): inherit config for useDB from default connection #8267 AbdelrahmanHafez
  • fix(query): set mongodb options for distinct() #8906 clhuang
  • fix(schema): allow adding descending indexes on schema #8895 AbdelrahmanHafez
  • fix(document): set defaults if setting nested path to empty object with minimize: false #8829
  • fix(populate): check discriminator existence before accessing schema in getModelsMapForPopulate #8837 AbdelrahmanHafez
  • docs: fix broken references to Mongoose#Document API, and prefer mongoose.model(...) over Document#model(...) #8914 AbdelrahmanHafez
  • docs(model): adds options.limit to Model.insertMany(...) #8864 AbdelrahmanHafez
  • docs: add flattenMaps and aliases to Document#toObject() #8901 AbdelrahmanHafez
  • docs(model): add options.overwrite to findOneAndUpdate #8865 AbdelrahmanHafez
  • docs(populate+faq): separate limit-vs-perDocumentLimit into its own section, add FAQ for populate and limit #8917 AbdelrahmanHafez

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
... (truncated)
Commits
  • ba0f199 chore: release 5.9.12
  • 54dd5cb fix(connection): throw more helpful error in case of IP whitelisting issue wi...
  • 2bea453 chore: update opencollective sponsors
  • 17b7988 style: fix lint
  • ff60457 fix(document): set defaults if setting nested path to empty object with `mini...
  • 3ce7c3a test(document): repro #8829
  • ace85cf test: fix more tests re: #8888
  • 5b35f20 test: fix tests re: #8888
  • 5cca9d6 fix(document): report cast error on array elements with array index instead o...
  • bea601c test(document): repro #8888
  • 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.12. **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.12)

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

Superseded by #124.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.9.12 branch May 11, 2020 06:36
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