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.1#96

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

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

Conversation

@dependabot-preview
Copy link
Contributor

Bumps mongoose from 4.13.20 to 5.9.1. 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.1 / 2020-02-14

  • fix(model): set session when calling save() with no changes #8571
  • fix(schema): return correct pathType when single nested path is embedded under a nested path with a numeric name #8583
  • fix(queryhelpers): remove Object.values() for Node.js 4.x-6.x support #8596
  • fix(cursor): respect sort order when using eachAsync() with parallel and a sync callback #8577
  • docs: update documentation of custom _id overriding in discriminators #8591 sam-mfb

5.9.0 / 2020-02-13

  • fix: upgrade to MongoDB driver 3.5 #8520 #8563
  • feat(schematype): support setting default options for schema type (trim on all strings, etc.) #8487
  • feat(populate): add perDocumentLimit option that limits per document in find() result, rather than across all documents #7318
  • feat(schematype): enable setting transform option on individual schematypes #8403
  • feat(timestamps): allow setting currentTime option for setting custom function to get the current time #3957
  • feat(connection): add Connection#watch() to watch for changes on an entire database #8425
  • feat(document): add Document#$op property to make it easier to tell what operation is running in middleware #8439
  • feat(populate): support limit as top-level populate option #8445

5.8.13 / 2020-02-13

  • fix(populate): use safe get to avoid crash if schematype doesn't have options #8586

5.8.12 / 2020-02-12

  • fix(query): correctly cast dbref $id with $elemMatch #8577
  • fix(populate): handle populating when some embedded discriminator schemas have refPath but none of the subdocs have refPath #8553
  • docs: add useUnifiedTopology to homepage example #8558 AbdelrahmanHafez
  • refactor(utils): moving promiseOrCallback to helpers/promiseOrCallback #8573 hugosenari

5.8.11 / 2020-01-31

  • fix(document): allow calling validate() multiple times in parallel on subdocs to avoid errors if Mongoose double-validates taxilian #8548 #8539
  • fix(connection): allow calling initial mongoose.connect() after connection helpers on the same tick #8534
  • fix(connection): throw helpful error when callback param to mongoose.connect() or mongoose.createConnection() is not a function #8556
  • fix(drivers): avoid unnecessary caught error when importing #8528
  • fix(discriminator): remove unnecessary utils.merge() samgladstone #8542
  • docs: add "built with mongoose" page #8540

5.8.10 / 2020-01-27

  • perf(document): improve performance of document creation by skipping unnecessary split() calls #8533 igrunert-atlassian
  • fix(document): only call validate once for deeply nested subdocuments #8532 #8531 taxilian
  • fix(document): create document array defaults in forward order, not reverse #8514
  • fix(document): allow function as message for date min/max validator #8512
  • fix(populate): don't try to populate embedded discriminator that has populated path but no refPath #8527
  • fix(document): plugins from base schema when creating a discriminator #8536 samgladstone
  • fix(document): ensure parent and ownerDocument are set for subdocs in document array defaults #8509
  • fix(document): dont set undefined keys to null if minimize is false #8504
  • fix(update): bump timestamps when using update aggregation pipelines #8524
... (truncated)
Commits
  • 427633d chore: release 5.9.1
  • 5061e94 test: fix tests re: #8571
  • 15b7f05 fix(model): set session when calling save() with no changes
  • 659f2a5 test(model): repro #8571
  • 56d24b5 Merge branch 'master' of github.com:Automattic/mongoose
  • 8bd4ea2 fix(cursor): respect sort order when using eachAsync() with parallel and ...
  • 636be98 test(cursor): repro #8557
  • 8ea5e98 Merge pull request #8591 from sam-mfb/fix-8588
  • 9aa46a6 fix: use eslint to check for mocha only() until we can drop node 4 support
  • d57c84b fix(queryhelpers): remove Object.values() for Node.js 4.x-6.x support
  • 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.1. **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.1)

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

Superseded by #100.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.9.1 branch February 24, 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