Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] Bump mongoose from 4.13.20 to 5.7.5 #1

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Feb 20, 2020

Bumps mongoose from 4.13.20 to 5.7.5. 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.

4.13.20 / 2020-01-07

  • fix(schema): make aliases handle mongoose-lean-virtuals #6069

5.8.5 / 2020-01-06

  • fix(document): throw error when running validate() multiple times on the same document #8468
  • fix(model): ensure deleteOne() and deleteMany() set discriminator filter even if no conditions passed #8471
  • fix(document): allow pre('validate') hooks to throw errors with name = 'ValidationError' #8466
  • fix(update): move top level $set of immutable properties to $setOnInsert so upserting with immutable properties actually sets the property #8467
  • fix(document): avoid double-running validators on single nested subdocs within single nested subdocs #8468
  • fix(populate): support top-level match option for virtual populate #8475
  • fix(model): avoid applying skip when populating virtual with count #8476

5.8.4 / 2020-01-02

  • fix(populate): ensure populate virtual gets set to empty array if localField is undefined in the database #8455
  • fix(connection): wrap mongoose.connect() server selection timeouts in MongooseTimeoutError for more readable stack traces #8451
  • fix(populate): allow deselecting foreignField from projection by prefixing with - #8460
  • fix(populate): support embedded discriminators with refPath when not all discriminator schemas have refPath #8452
  • fix(array): allow defining enum on array if an array of numbers #8449

5.8.3 / 2019-12-23

  • fix: upgrade mongodb -> 3.4.1 #8430 jaschaio
  • fix(populate): don't add empty subdocument to array when populating path underneath a non-existent document array #8432
  • fix(schema): handle _id option for document array schematypes #8450
  • fix(update): call setters when updating mixed type #8444
  • docs(connections): add note about MongoTimeoutError.reason #8402

5.8.2 / 2019-12-20

  • fix(schema): copy .add()-ed paths when calling .add() with schema argument #8429
  • fix(cursor): pull schema-level readPreference when using Query#cursor() #8421
  • fix(cursor): wait for all promises to resolve if parallel is greater than number of documents #8422
  • fix(document): depopulate entire array when setting array path to a partially populated array #8443
  • fix: handle setDefaultsOnInsert with deeply nested subdocs #8392
  • fix(document): report DocumentNotFoundError if underlying document deleted but no changes made #8428 #8371 AbdelrahmanHafez
  • docs(populate): clarify limitations of limit option for populate and suggest workaround #8409
  • docs(deprecations): explain which connection options are no longer relevant with useUnifiedTopology #8411
  • chore: allow browser build to be published #8435 #8427 captaincaius

5.8.1 / 2019-12-12

  • fix(documentarray): dont attempt to cast when modifying array returned from map() #8399
  • fix(document): update single nested subdoc parent when setting to existing single nested doc #8400
  • fix(schema): add $embeddedSchemaType property to arrays for consistency with document arrays #8389

5.8.0 / 2019-12-09

... (truncated)
Commits
  • 40a879b chore: release 5.7.5
  • 159457d chore: add vpn black friday as sponsor
  • e6285ea Merge pull request #8244 from AbdelrahmanHafez/master
  • d9163f5 fix: correct order for declaration
  • cec9dda Minor refactor to ValidationError
  • 13ae085 docs(index): add favicon to home page
  • 96ce0eb style: fix lint
  • 973b1e0 docs: add schema options to API docs
  • cdfb507 chore: add useUnifiedTopology for tests re: #8212
  • 936ddfb fix(update): handle subdocument pre('validate') errors in update validation
  • 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.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

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)

@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Feb 20, 2020
Bumps [mongoose](https://github.com/Automattic/mongoose) from 4.13.20 to 5.7.5. **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.7.5)

Signed-off-by: dependabot-preview[bot] <[email protected]>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/mongoose-5.7.5 branch from 38e1e78 to 69a5483 Compare January 14, 2021 13:56
@dependabot-preview dependabot-preview bot changed the base branch from develop to dev January 14, 2021 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

2 participants