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.19 to 5.7.9#53

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

[Security] Bump mongoose from 4.13.19 to 5.7.9#53
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/mongoose-5.7.9

Conversation

@dependabot-preview
Copy link
Contributor

Bumps mongoose from 4.13.19 to 5.7.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.7.9 / 2019-11-08

  • fix(schema): support setting schema path to an instance of SchemaTypeOptions to fix integration with mongoose-i18n-localize #8297 #8292
  • fix(populate): make retainNullValues set array element to null if foreign doc with that id was not found #8293
  • fix(document): support getter setting virtual on manually populated doc when calling toJSON() #8295
  • fix(model): allow objects with toBSON() to make it to save() #8299

5.7.8 / 2019-11-04

  • fix(document): allow manually populating path within document array #8273
  • fix(populate): update top-level populated() when updating document array with populated subpaths #8265
  • fix(cursor): throw error when using aggregation cursor as async iterator #8280
  • fix(schema): retain _id: false in schema after nesting in another schema #8274
  • fix(document): make Document class an event emitter to support defining documents without models in node #8272
  • docs: document return types for .discriminator() #8287
  • docs(connection): add note about exporting schemas, not models, in multi connection paradigm #8275
  • docs: clarify that transforms defined in toObject() options are applied to subdocs #8260

5.7.7 / 2019-10-24

  • fix(populate): make populate virtual consistently an empty array if local field is only empty arrays #8230
  • fix(query): allow findOne(objectid) and find(objectid) #8268

5.7.6 / 2019-10-21

  • fix: upgrade mongodb driver -> 3.3.3 to fix issue with failing to connect to a replica set if one member is down #8209
  • fix(document): fix TypeError when setting a single nested subdoc with timestamps #8251
  • fix(cursor): fix issue with long-running eachAsync() cursor #8249 #8235
  • fix(connection): ensure repeated close events from useUnifiedTopology don't disconnect Mongoose from replica set #8224
  • fix(document): support calling Document constructor directly in Node.js #8237
  • fix(populate): add document array subpaths to parent doc populated() when calling DocumentArray#push() #8247
  • fix(options): add missing minlength and maxlength to SchemaStringOptions #8256
  • docs: add documentarraypath to API docs, including DocumentArrayPath#discriminator() #8164
  • docs(schematypes): add a section about the type property #8227
  • docs(api): fix Connection.close return param #8258 gosuhiman
  • docs: update link to broken image on home page #8253 krosenk729

5.7.5 / 2019-10-14

  • fix(query): delete top-level _bsontype property in queries to prevent silent empty queries #8222
  • fix(update): handle subdocument pre('validate') errors in update validation #7187
  • fix(subdocument): make subdocument#isModified use parent document's isModified #8223
  • docs(index): add favicon to home page #8226
  • docs: add schema options to API docs #8012
  • docs(middleware): add note about accessing the document being updated in pre('findOneAndUpdate') #8218
  • refactor: remove redundant code in ValidationError #8244 AbdelrahmanHafez

5.7.4 / 2019-10-09

  • fix(schema): handle required: null and required: undefined as required: false #8219
... (truncated)
Commits
  • 537217e chore: release 5.7.9
  • 97d6900 test: fix tests for node 4.x and 5.x
  • 03ef4d8 fix(document): support getter setting virtual on manually populated doc when ...
  • d4648ee test(document): repro #8295
  • 6c1d46a fix(model): allow objects with toBSON() to make it to save()
  • de3eee5 docs: add link to custom casting guide
  • 1c4d994 chore: now working on 5.7.9
  • 9b0e96d fix(populate): make retainNullValues set array element to null if foreign...
  • f0aeddc test(populate): repro #8293
  • d02ebd2 fix(schema): support setting schema path to an instance of SchemaTypeOptions
  • 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.19 to 5.7.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.19...5.7.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 Nov 11, 2019
@dependabot-preview
Copy link
Contributor Author

Superseded by #54.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.7.9 branch November 12, 2019 06:18
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