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.21 to 5.10.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.10.12 / 2020-11-04

  • fix(connection): catch and report sync errors in connection wrappers like startSession() #9515
  • fix(document): ignore getters when diffing values for change tracking #9501
  • fix(connection): avoid executing promise handler unless it's a function #9507 AbdelrahmanHafez
  • fix(error): throw more helpful error when connecting to a non-SSL MongoDB server with SSL enabled #9511
  • docs(model+query): clarify that deleteOne and deleteMany trigger middleware #9504
  • docs(ssl): add note about ssl defaulting to true for srv connection strings #9511

5.10.11 / 2020-10-26

  • fix(connection): when calling mongoose.connect() multiple times in parallel, make 2nd call wait for connection before resolving #9476
  • fix(map): make save() persist Map#clear() #9493
  • fix(document): avoid overwriting array subdocument when setting dotted path that isn't selected #9427
  • fix(connection): don't throw Atlas error if server discovery doesn't find any servers #9470
  • docs: update options for Model.findOneAndUpdate #9499 radamson

5.10.10 / 2020-10-23

  • fix(schema): handle merging schemas from separate Mongoose module instances when schema has a virtual #9471
  • fix(connection): make connection.then(...) resolve to a connection instance #9497 AbdelrahmanHafez
  • fix(aggregate): when using $search with discriminators, add $match as the 2nd stage in pipeline rather than 1st #9487
  • fix(query): cast $nor within $elemMatch #9479
  • docs(connection): add note about 'error' event versus 'disconnected' event #9488 tareqdayya

5.10.9 / 2020-10-09

  • fix(update): strip out unused array filters to avoid "filter was not used in the update" error #9468
  • fix(mongoose): allow setting autoCreate as a global option to be consistent with autoIndex #9466

5.10.8 / 2020-10-05

  • fix(schema): handle setting nested paths underneath single nested subdocs #9459
  • fix(schema+index): allow calling mongoose.model() with schema from a different Mongoose module instance #9449
  • fix(transaction): fix saving new documents w/ arrays in transactions #9457 PenguinToast
  • fix(document): track reason on cast errors that occur while init-ing a document #9448
  • fix(model): make createCollection() not throw error when collection already exists to be consistent with v5.9 #9447
  • docs(connections): add SSL connections docs #9443
  • docs(query_casting): fix typo #9458 craig-davis

5.10.7 / 2020-09-24

  • fix(schema): set correct path and schema on nested primitive arrays #9429
  • fix(document): pass document to required validator so required can use arrow functions #9435 AbdelrahmanHafez
  • fix(document): handle required when schema has property named isSelected #9438
  • fix(timestamps): allow using timestamps when schema has a property named 'set' #9428
  • fix(schema): make Schema#clone() use parent Mongoose instance's Schema constructor #9426

5.10.6 / 2020-09-18

Commits
  • 4abfb95 chore: release 5.10.12
  • 9892367 chore: remove unnecessary print statement
  • 88ea4f4 fix(error): throw more helpful error when connecting to a non-SSL MongoDB ser...
  • c251697 docs(ssl): add note about ssl defaulting to true for srv connection strings
  • 0fffe25 docs(model+query): clarify that deleteOne and deleteMany trigger middleware
  • 878b6b2 test: fix tests for #9501
  • ebe8a17 Merge branch 'master' of github.com:Automattic/mongoose
  • ac47d82 fix(document): ignore getters when diffing values for change tracking
  • e34d0f9 test(document): repro #9501
  • 476e1f0 Merge pull request #9507 from AbdelrahmanHafez/gh-9505
  • 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.21 to 5.10.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.21...5.10.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 Nov 5, 2020
@dependabot-preview
Copy link
Contributor Author

Superseded by #198.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.10.12 branch November 9, 2020 06:29
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