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.11.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.11.15 / 2021-02-03

  • fix(document): fix issues with isSelected as an path in a nested schema #9884 #9873 IslandRhythms
  • fix(index.d.ts): better support for SchemaDefinition generics when creating schema #9863 #9862 #9789
  • fix(index.d.ts): allow required function in array definition #9888 Ugzuzg
  • fix(index.d.ts): reorder create typings to allow array desctructuring #9890 Ugzuzg
  • fix(index.d.ts): add missing overload to Model.validate #9878 #9877 jonamat
  • fix(index.d.ts): throw compiler error if schema says path is a String, but interface says path is a number #9857
  • fix(index.d.ts): make Query a class, allow calling Query#where() with object argument and with no arguments #9856
  • fix(index.d.ts): support calling Schema#pre() and Schema#post() with options and array of hooked function names #9844
  • docs(faq): mention other debug options than console #9887 dandv
  • docs(connections): clarify that Mongoose can emit 'error' both during initial connection and after initial connection #9853

5.11.14 / 2021-01-28

  • fix(populate): avoid inferring justOne from parent when populating a POJO with a manually populated path #9833 IslandRhythms
  • fix(document): apply setters on each element of the array when setting a populated array #9838
  • fix(map): handle change tracking on maps of subdocs #9811 IslandRhythms
  • fix(document): remove dependency on documentIsSelected symbol #9841 IslandRhythms
  • fix(error): make ValidationError.toJSON to include the error name correctly #9849 hanzki
  • fix(index.d.ts): indicate that Document#remove() returns a promise, not a query #9826
  • fix(index.d.ts): allow setting SchemaType#enum to TypeScript enum with required: true #9546

5.11.13 / 2021-01-20

  • fix(map): handle change tracking on map of arrays #9813
  • fix(connection): allow passing options to Connection#transaction() #9834 pnutmath
  • fix(index.d.ts): make Query#options#rawResult take precedence over new+upsert #9816
  • fix(index.d.ts): changed setOptions's 'overwrite' argument to optional #9824 pierissimo
  • fix(index.d.ts): allow setting mongoose.Promise #9820
  • fix(index.d.ts): add Aggregate#replaceRoot() #9814
  • fix(index.d.ts): make Model.create() with a spread return a promise of array rather than single doc #9817
  • fix(index.d.ts): use SchemaDefinitionProperty generic for SchemaTypeOptions if specified #9815
  • docs(populate): add note about setting toObject for populate virtuals #9822

5.11.12 / 2021-01-14

  • fix(document): handle using db as a document path #9798
  • fix(collection): make sure to call onOpen() if autoCreate === false #9807
  • fix(index.d.ts): correct query type for findOneAndUpdate() and findByIdAndUpdate() with rawResult = true #9803
  • fix(index.d.ts): require setting new: true or returnOriginal: false to skip null check with findOneAndUpdate() #9654
  • fix(index.d.ts): make methods and statics optional on schema #9801
  • fix(index.d.ts): remove non backwards compatible methods restriction #9801
  • docs: removed the extra word on comment doc #9794 HenriqueLBorges

5.11.11 / 2021-01-08

  • fix(model): support calling create() with undefined as first argument and no callback #9765
  • fix(index.d.ts): ensure TypeScript knows that this refers to DocType in schema methods with strict mode #9755
  • fix(index.d.ts): make SchemaDefinition accept a model generic #9761 mroohian

... (truncated)

Commits

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.11.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.21...5.11.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 Feb 4, 2021
@dependabot-preview
Copy link
Contributor Author

Superseded by #238.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongoose-5.11.15 branch February 15, 2021 06:21
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.

1 participant