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.8.10#87

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

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

Conversation

@dependabot-preview
Copy link
Contributor

Bumps mongoose from 4.13.20 to 5.8.10. 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.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
  • fix(model): ensure cleanIndexes() drops indexes with different collations #8521
  • docs(model): document insertMany lean option #8522
  • docs(connections): document authSource option #8517

5.8.9 / 2020-01-17

  • fix(populate): skip populating embedded discriminator array values that don't have a refPath #8499
  • docs(queries): clarify when to use queries versus aggregations #8494

5.8.8 / 2020-01-14

  • fix(model): allow using lean with insertMany() #8507 #8234 ntsekouras
  • fix(document): don't throw parallel validate error when validating subdoc underneath modified nested path #8486
  • fix: allow typePojoToMixed as top-level option #8501 #8500 AbdelrahmanHafez
  • docs(populate+schematypes): make note of _id getter for ObjectIds in populate docs #8483

5.8.7 / 2020-01-10

  • fix(documentarray): modify ownerDocument when setting doc array to a doc array thats part of another document #8479
  • fix(document): ensure that you can call splice() after slice() on an array #8482
  • docs(populate): improve cross-db populate docs to include model refs #8497

5.8.6 / 2020-01-07

  • chore: merge changes from 4.13.20 and override mistaken publish to latest tag
Commits
  • 41b3ff5 chore: release 5.8.10
  • bfbc921 test: fix tests re: #8536
  • 0f3bc9b Merge pull request #8536 from samgladstone/master
  • 6303d55 test: fix test #8481
  • abd6197 test(model): reuse collections where possible re: #8481
  • 5a3fdb8 doc(connections): document authSource option
  • 8fd570e style: fix lint
  • 312355c fix(populate): don't try to populate embedded discriminator that has populate...
  • fc6571b test(populate): repro #8527
  • cb71d57 fix(document): create document array defaults in forward order, not reverse
  • 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.8.10. **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.8.10)

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

Superseded by #90.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.8.10 branch February 3, 2020 06:37
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