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.20 to 5.9.15. 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.15 / 2020-05-18

  • fix(schema): treat creating dotted path with no parent as creating a nested path #9020
  • fix(documentarray): make sure you can call unshift() after map() #9012 philippejer
  • fix(model): cast bulkwrite according to discriminator schema if discriminator key is present #8982 AbdelrahmanHafez
  • fix(schema): remove db from reserved keywords #8940
  • fix(populate): treat populating a doc array that doesn't have a ref as a no-op #8946
  • fix(timestamps): set createdAt and updatedAt on doubly nested subdocs when upserting #8894
  • fix(model): allow POJOs as schemas for model.discriminator(...) #8991 AbdelrahmanHafez
  • fix(model): report insertedDocs on insertMany() errors #8938
  • fix(model): ensure consistent writeErrors property on insertMany error with ordered: false, even if only one op failed #8938
  • docs: add anchor tag to strictQuery and strict #9014 AbdelrahmanHafez
  • docs(faq): remove faq ipv6 #9004
  • docs: add note about throwing error only after validation and fix broken reference to api/CastError #8993 AbdelrahmanHafez
  • docs: fix typos in documents.pug #9005 dandv

5.9.14 / 2020-05-13

  • fix(cursor): add index as second parameter to eachAsync callback #8972 AbdelrahmanHafez
  • fix(query): cast filter according to discriminator schema if discriminator key in filter #8881
  • fix(model): fix throwing error when populating virtual path defined on child discriminator #8924 AbdelrahmanHafez
  • fix(errors): handle case when user has make Error.prototype.toJSON read only #8986 osher
  • fix(model): add kind to cast errors thrown by query execution #8953 AbdelrahmanHafez
  • fix(update): use child schema strict on single nested updates if useNestedStrict not set #8922
  • docs(model): improve save() docs #8956 AbdelrahmanHafez
  • docs: add immutable type to Schema Types #8987 Andrew5569
  • docs: sort schema reserved keys in documentation #8966 AbdelrahmanHafez

5.9.13 / 2020-05-08

  • fix(schema): mark correct path as modified when setting a path underneath a nested array of documents #8926
  • fix(query): Query#select({ field: false }) should not overwrite schema selection options #8929 #8923
  • fix(update): handle immutable properties are ignored in bulk upserts #8952 philippejer
  • docs(browser): add back sample webpack config #8890
  • docs(faq): fix broken reference in limit vs perDocumentLimit #8937

5.9.12 / 2020-05-04

  • fix(document): report cast error on array elements with array index instead of just being a cast error for the whole array #8888
  • fix(connection): throw more helpful error in case of IP whitelisting issue with Atlas #8846
  • fix(schema): throw error on schema with reserved key with type of object #8869 AbdelrahmanHafez
  • fix(connection): inherit config for useDB from default connection #8267 AbdelrahmanHafez
  • fix(query): set mongodb options for distinct() #8906 clhuang
  • fix(schema): allow adding descending indexes on schema #8895 AbdelrahmanHafez
  • fix(document): set defaults if setting nested path to empty object with minimize: false #8829
  • fix(populate): check discriminator existence before accessing schema in getModelsMapForPopulate #8837 AbdelrahmanHafez
  • docs: fix broken references to Mongoose#Document API, and prefer mongoose.model(...) over Document#model(...) #8914 AbdelrahmanHafez
  • docs(model): adds options.limit to Model.insertMany(...) #8864 AbdelrahmanHafez
  • docs: add flattenMaps and aliases to Document#toObject() #8901 AbdelrahmanHafez
  • docs(model): add options.overwrite to findOneAndUpdate #8865 AbdelrahmanHafez
... (truncated)
Commits
  • 8ac42aa chore: release 5.9.15
  • 14bba6f Merge pull request #9013 from philippejer/gh-9012
  • ed97aac Merge pull request #9014 from AbdelrahmanHafez/strictQuery-anchor
  • b5c5211 fix(model): report insertedDocs on insertMany() errors
  • faaff44 fix(model): ensure consistent writeErrors property on insertMany error with...
  • e736a73 test(model): repro #8938
  • 59f0024 fix(schema): treat creating dotted path with no parent as creating a nested path
  • c7dec63 test(schema): repro #9020
  • 9c172e9 style: fix lint
  • 6197c74 fix(timestamps): set createdAt and updatedAt on doubly nested subdocs when up...
  • 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.15. **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.15)

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

Superseded by #130.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.9.15 branch May 26, 2020 06:16
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