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.14. 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.14 / 2020-05-13

  • fix(cursor): add index as second parameter to eachAsync callback #8972 AbdelrahmanHafez
  • fix(query): cast filter according to discriminator schema if discriminator key in filter #8881
  • fix(model): fix throwing error when populating virtual path defined on child discriminator #8924 AbdelrahmanHafez
  • fix(errors): handle case when user has make Error.prototype.toJSON read only #8986 osher
  • fix(model): add kind to cast errors thrown by query execution #8953 AbdelrahmanHafez
  • fix(update): use child schema strict on single nested updates if useNestedStrict not set #8922
  • docs(model): improve save() docs #8956 AbdelrahmanHafez
  • docs: add immutable type to Schema Types #8987 Andrew5569
  • docs: sort schema reserved keys in documentation #8966 AbdelrahmanHafez

5.9.13 / 2020-05-08

  • fix(schema): mark correct path as modified when setting a path underneath a nested array of documents #8926
  • fix(query): Query#select({ field: false }) should not overwrite schema selection options #8929 #8923
  • fix(update): handle immutable properties are ignored in bulk upserts #8952 philippejer
  • docs(browser): add back sample webpack config #8890
  • docs(faq): fix broken reference in limit vs perDocumentLimit #8937

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
... (truncated)
Commits

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.14. **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.14)

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

Superseded by #128.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.9.14 branch May 19, 2020 06:17
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