projecttacoma / cqm-execution

NPM module for calculating eCQMs (electronic clinical quality measures) written in CQL (clinical quality language).
Apache License 2.0
10 stars 2 forks source link

[Security] Bump mongoose from 5.6.9 to 5.9.27 #183

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps mongoose from 5.6.9 to 5.9.27. 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.27 / 2020-07-31

  • fix: upgrade mongodb driver -> 3.5.10 AbdelrahmanHafez
  • docs(transactions): make transactions docs use async/await for readability #9204

5.9.26 / 2020-07-27

  • fix(document): allow unsetting boolean field by setting the field to undefined #9275
  • fix(document): throw error when overwriting a single nested subdoc changes an immutable path within the subdoc #9281
  • fix(timestamps): apply timestamps to bulkWrite() updates when not using $set #9268
  • fix(browser): upgrade babel to v7 to work around an issue with extends Error #9273
  • fix: make subdocument's invalidate() methods have the same return value as top-level document #9271
  • docs(model): make create() docs use async/await, and add another warning about how create() with options requires array syntax #9280
  • docs(connections): clarify that Mongoose can emit 'connected' when reconnecting after losing connectivity #9240
  • docs(populate): clarify that you can't filter based on foreign document properties when populating #9279
  • docs(document+model): clarify how validateModifiedOnly option works #9263
  • docs: remove extra poolSize option in comment #9270 shahvicky
  • docs: point bulkWrite() link to mongoose docs instead of localhost #9284

5.9.25 / 2020-07-17

  • fix(discriminator): allow passing a compiled model's schema as a parameter to discriminator() #9238
  • fix(connection): throw more readable error when querying db before initial connection when bufferCommands = false #9239
  • fix(indexes): don't unnecessarily drop text indexes when running syncIndexes() #9225
  • fix: make Boolean _castNullish respect omitUndefined #9242 ehpc
  • fix(populate): populate single nested discriminator underneath doc array when populated docs have different model but same id #9244
  • docs(mongoose): correct formatting typo #9247 JNa0

5.9.24 / 2020-07-13

  • fix(connection): respect connection-level bufferCommands option if mongoose.connect() is called after mongoose.model() #9179
  • fix(document): clear out priorDoc after overwriting single nested subdoc so changes after overwrite get persisted correctly #9208
  • fix(connection): dont overwrite user-specified bufferMaxEntries when setting bufferCommands #9218
  • fix(model): allow passing projection to Model.hydrate() #9209
  • fix(schema+document): support adding null to schema boolean's convertToFalse set #9223
  • docs(model): make find and findOne() examples use async/await and clarify find({}) is find all #9210

4.13.21 / 2020-07-12

  • fix(query): delete top-level _bsontype property in queries to prevent silent empty queries #8222

5.9.23 / 2020-07-10

  • fix(model): fix syncIndexes() error when db index has a collation but Mongoose index does not #9224 clhuang
  • fix(array): only cast array to proper depth if it contains an non-array value #9217 #9215 cyrilgandon
  • docs(schematype): document the transform option #9211
  • docs(mongoose): fix typo #9212 JNa0

5.9.22 / 2020-07-06

Commits
  • 5953a67 chore: release 5.9.27
  • e707bf0 Merge pull request #9297 from AbdelrahmanHafez/patch-7
  • 57b1bc6 bump mongodb driver to 3.5.10
  • f8ae13d docs(transactions): make transactions docs use async/await for readability
  • dcccbcc chore: add changelog to npmignore
  • c55fba5 chore: fix docs build
  • 4d0a19e chore: release 5.9.26
  • 5ad0753 Merge pull request #9284 from shahvicky/patch-3
  • 17fbcca docs: correct link
  • 8759703 fix(document): allow unsetting boolean field by setting the field to undefined
  • 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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)