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

[Snyk] Upgrade mongoose from 6.0.9 to 6.13.5 #273

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

Conversation

officialmofabs
Copy link
Collaborator

@officialmofabs officialmofabs commented Jan 3, 2025

snyk-top-banner

Snyk has created this PR to upgrade mongoose from 6.0.9 to 6.13.5.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 105 versions ahead of your current version.

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Prototype Pollution
SNYK-JS-MONGOOSE-2961688
671 Proof of Concept
high severity Prototype Pollution
SNYK-JS-MONGOOSE-5777721
671 Proof of Concept
high severity Improper Neutralization of Special Elements in Data Query Logic
SNYK-JS-MONGOOSE-8446504
671 No Known Exploit
Release notes
Package name: mongoose
  • 6.13.5 - 2024-11-26

    chore: release 6.13.5

  • 6.13.4 - 2024-11-15

    chore: release 6.13.4

  • 6.13.3 - 2024-09-23
  • 6.13.2 - 2024-09-12
  • 6.13.1 - 2024-09-06
  • 6.13.0 - 2024-06-06
  • 6.12.9 - 2024-05-24
  • 6.12.8 - 2024-04-10
  • 6.12.7 - 2024-03-01
  • 6.12.6 - 2024-01-22
  • 6.12.5 - 2024-01-03
  • 6.12.4 - 2023-12-27
  • 6.12.3 - 2023-11-07
  • 6.12.2 - 2023-10-25
  • 6.12.1 - 2023-10-12
  • 6.12.0 - 2023-08-24
  • 6.11.6 - 2023-08-21
  • 6.11.5 - 2023-08-01
  • 6.11.4 - 2023-07-17
  • 6.11.3 - 2023-07-11
  • 6.11.2 - 2023-06-08
  • 6.11.1 - 2023-05-08
  • 6.11.0 - 2023-05-01
  • 6.10.5 - 2023-04-06
  • 6.10.4 - 2023-03-21
  • 6.10.3 - 2023-03-13
  • 6.10.2 - 2023-03-07
  • 6.10.1 - 2023-03-03
  • 6.10.0 - 2023-02-22
  • 6.9.3 - 2023-02-22
  • 6.9.2 - 2023-02-16
  • 6.9.1 - 2023-02-06
  • 6.9.0 - 2023-01-25
  • 6.8.4 - 2023-01-17
  • 6.8.3 - 2023-01-06
  • 6.8.2 - 2022-12-28
  • 6.8.1 - 2022-12-19
  • 6.8.0 - 2022-12-05
  • 6.7.5 - 2022-11-30
  • 6.7.4 - 2022-11-28
  • 6.7.3 - 2022-11-22
  • 6.7.2 - 2022-11-07
  • 6.7.1 - 2022-11-02
  • 6.7.0 - 2022-10-24
  • 6.6.7 - 2022-10-21
  • 6.6.6 - 2022-10-20
  • 6.6.5 - 2022-10-05
  • 6.6.4 - 2022-10-03
  • 6.6.3 - 2022-09-30
  • 6.6.2 - 2022-09-26
  • 6.6.1 - 2022-09-14
  • 6.6.0 - 2022-09-08
  • 6.5.5 - 2022-09-07
  • 6.5.4 - 2022-08-30
  • 6.5.3 - 2022-08-25
  • 6.5.2 - 2022-08-10
  • 6.5.1 - 2022-08-03
  • 6.5.0 - 2022-07-26
  • 6.4.7 - 2022-07-25
  • 6.4.6 - 2022-07-20
  • 6.4.5 - 2022-07-18
  • 6.4.4 - 2022-07-08
  • 6.4.3 - 2022-07-05
  • 6.4.2 - 2022-07-01
  • 6.4.1 - 2022-06-27
  • 6.4.0 - 2022-06-17
  • 6.3.9 - 2022-06-17
  • 6.3.8 - 2022-06-13
  • 6.3.7 - 2022-06-13
  • 6.3.6 - 2022-06-07
  • 6.3.5 - 2022-05-30
  • 6.3.4 - 2022-05-19
  • 6.3.3 - 2022-05-09
  • 6.3.2 - 2022-05-02
  • 6.3.1 - 2022-04-21
  • 6.3.0 - 2022-04-14
  • 6.2.11 - 2022-04-13
  • 6.2.10 - 2022-04-04
  • 6.2.9 - 2022-03-28
  • 6.2.8 - 2022-03-23
  • 6.2.7 - 2022-03-16
  • 6.2.6 - 2022-03-11
  • 6.2.5 - 2022-03-09
  • 6.2.4 - 2022-02-28
  • 6.2.3 - 2022-02-21
  • 6.2.2 - 2022-02-16
  • 6.2.1 - 2022-02-07
  • 6.2.0 - 2022-02-02
  • 6.1.10 - 2022-02-01
  • 6.1.9 - 2022-01-31
  • 6.1.8 - 2022-01-24
  • 6.1.7 - 2022-01-17
  • 6.1.6 - 2022-01-10
  • 6.1.5 - 2022-01-04
  • 6.1.4 - 2021-12-27
  • 6.1.3 - 2021-12-21
  • 6.1.2 - 2021-12-15
  • 6.1.1 - 2021-12-09
  • 6.1.0 - 2021-12-07
  • 6.0.15 - 2021-12-06
  • 6.0.14 - 2021-11-29
  • 6.0.13 - 2021-11-15
  • 6.0.12 - 2021-10-21
  • 6.0.11 - 2021-10-14
  • 6.0.10 - 2021-10-08
  • 6.0.9 - 2021-10-04
from mongoose GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Upgrade mongoose from 6.0.9 to 6.13.5 to address security vulnerabilities.

Bug Fixes:

  • Fix prototype pollution vulnerabilities (SNYK-JS-MONGOOSE-2961688, SNYK-JS-MONGOOSE-5777721).
  • Fix improper neutralization of special elements in data query logic (SNYK-JS-MONGOOSE-8446504).

Copy link

sourcery-ai bot commented Jan 3, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the mongoose dependency from version 6.0.9 to 6.13.5 to address three high-severity vulnerabilities related to Prototype Pollution and Improper Neutralization of Special Elements in Data Query Logic. The upgrade also includes numerous other fixes and improvements from the intervening 105 versions.

Class diagram showing mongoose security improvements

classDiagram
    class MongooseV609 {
        -vulnerableQueryLogic()
        -vulnerablePrototypePollution()
    }

    class MongooseV6135 {
        +secureQueryLogic()
        +securePrototypePollution()
        +improvedDataValidation()
    }

    MongooseV609 <|-- MongooseV6135 : Upgraded

    note for MongooseV609 "Contains security vulnerabilities"
    note for MongooseV6135 "Fixed high severity issues:
- Prototype Pollution
- Query Logic Validation"
Loading

File-Level Changes

Change Details Files
Upgrade mongoose package
  • Update mongoose version to 6.13.5 in package.json
  • Update package-lock.json to reflect changes in dependency tree
react-express-mongodb/backend/package.json
react-express-mongodb/backend/package-lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@aws-crypto/sha256-browser@5.2.0 None +3 94.9 kB aws-crypto-tools-ci-bot
npm/@aws-crypto/sha256-js@5.2.0 None 0 129 kB aws-crypto-tools-ci-bot
npm/@aws-crypto/supports-web-crypto@5.2.0 None 0 28.4 kB aws-crypto-tools-ci-bot
npm/@aws-crypto/util@5.2.0 None 0 30.7 kB aws-crypto-tools-ci-bot
npm/@aws-sdk/client-cognito-identity@3.721.0 None 0 518 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/client-sso-oidc@3.721.0 None 0 286 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/client-sso@3.721.0 None 0 203 kB aws-sdk-bot
npm/@aws-sdk/client-sts@3.721.0 None 0 475 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/core@3.716.0 None 0 78.7 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-provider-cognito-identity@3.721.0 None 0 43.5 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-provider-env@3.716.0 None 0 19.9 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-provider-http@3.716.0 None 0 27 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-provider-ini@3.721.0 None 0 51.6 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-provider-node@3.721.0 environment 0 36.4 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-provider-process@3.716.0 None 0 24.4 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-provider-sso@3.721.0 None 0 36.7 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-provider-web-identity@3.716.0 None 0 32.8 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/credential-providers@3.721.0 None 0 103 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/middleware-host-header@3.714.0 None 0 19.2 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/middleware-logger@3.714.0 None 0 19.5 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/middleware-recursion-detection@3.714.0 None 0 18.9 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/middleware-user-agent@3.721.0 None 0 36.6 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/region-config-resolver@3.714.0 None 0 24.3 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/token-providers@3.721.0 None 0 36.4 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/types@3.714.0 None 0 53.3 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/util-endpoints@3.714.0 None 0 50.4 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/util-locate-window@3.693.0 None 0 15.1 kB aws-sdk-bot
npm/@aws-sdk/util-user-agent-browser@3.714.0 None 0 19.7 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@aws-sdk/util-user-agent-node@3.721.0 None 0 21.9 kB amzn-oss, aws-sdk-bot, kuhe, ...2 more
npm/@mongodb-js/saslprep@1.1.9 None 0 648 kB devtoolsbot
npm/@sindresorhus/is@0.14.0 None 0 40.2 kB sindresorhus
npm/@smithy/abort-controller@3.1.9 None 0 0 B
npm/@smithy/config-resolver@3.0.13 None 0 0 B
npm/@smithy/core@2.5.7 None 0 138 kB smithy-team
npm/@smithy/credential-provider-imds@3.2.8 None 0 0 B
npm/@smithy/fetch-http-handler@4.1.3 network 0 35.3 kB smithy-team
npm/@smithy/hash-node@3.0.11 None 0 0 B
npm/@smithy/invalid-dependency@3.0.11 None 0 0 B
npm/@smithy/is-array-buffer@3.0.0 None 0 15.3 kB smithy-team
npm/@smithy/middleware-content-length@3.0.13 None 0 0 B
npm/@smithy/middleware-endpoint@3.2.8 None 0 60.1 kB smithy-team, trivikr-aws
npm/@smithy/middleware-retry@3.0.34 None 0 66.7 kB smithy-team
npm/@smithy/middleware-serde@3.0.11 None 0 0 B
npm/@smithy/middleware-stack@3.0.11 None 0 0 B
npm/@smithy/node-config-provider@3.1.12 None 0 0 B
npm/@smithy/node-http-handler@3.3.3 None 0 95.3 kB smithy-team, trivikr-aws
npm/@smithy/property-provider@3.1.11 None 0 0 B
npm/@smithy/protocol-http@4.1.8 None 0 0 B
npm/@smithy/querystring-builder@3.0.11 None 0 0 B
npm/@smithy/querystring-parser@3.0.11 None 0 0 B
npm/@smithy/service-error-classification@3.0.11 None 0 0 B
npm/@smithy/shared-ini-file-loader@3.1.12 None 0 0 B
npm/@smithy/signature-v4@4.2.4 None 0 0 B
npm/@smithy/smithy-client@3.7.0 None 0 174 kB smithy-team
npm/@smithy/types@3.7.2 None 0 0 B
npm/@smithy/url-parser@3.0.11 None 0 0 B
npm/@smithy/util-base64@3.0.0 None 0 29.1 kB smithy-team
npm/@smithy/util-body-length-browser@3.0.0 None 0 17 kB smithy-team
npm/@smithy/util-body-length-node@3.0.0 filesystem 0 16.9 kB smithy-team
npm/@smithy/util-buffer-from@3.0.0 None 0 17.1 kB smithy-team
npm/@smithy/util-config-provider@3.0.0 None 0 18.7 kB smithy-team
npm/@smithy/util-defaults-mode-browser@3.0.34 None 0 23.4 kB smithy-team
npm/@smithy/util-defaults-mode-node@3.0.34 None 0 25.1 kB smithy-team, trivikr-aws
npm/@smithy/util-endpoints@2.1.7 None 0 0 B
npm/@smithy/util-hex-encoding@3.0.0 None 0 17.5 kB smithy-team
npm/@smithy/util-middleware@3.0.11 None 0 0 B
npm/@smithy/util-retry@3.0.11 None 0 0 B
npm/@smithy/util-stream@3.3.4 None 0 69.2 kB smithy-team
npm/@smithy/util-uri-escape@3.0.0 None 0 16.2 kB smithy-team
npm/@smithy/util-utf8@3.0.0 None 0 19.3 kB smithy-team
npm/@szmarczak/http-timer@1.1.2 None 0 6.3 kB szmarczak
npm/@types/color-name@1.1.1 None 0 7.01 kB types
npm/@types/node@22.10.4 None 0 2.29 MB types
npm/@types/webidl-conversions@7.0.3 None 0 6.77 kB types
npm/@types/whatwg-url@8.2.2 None 0 14.5 kB types
npm/abbrev@1.1.1 None 0 4.78 kB isaacs
npm/accepts@1.3.7 None 0 16.6 kB dougwilson
npm/ansi-align@3.0.1 None 0 7.68 kB nexdrew
npm/ansi-styles@4.2.1 None 0 14.7 kB sindresorhus
npm/anymatch@3.1.1 None 0 9.44 kB paulmillr
npm/balanced-match@1.0.0 None 0 6.7 kB juliangruber
npm/bcryptjs@2.4.3 None 0 221 kB dcode
npm/binary-extensions@2.0.0 None 0 5.07 kB sindresorhus
npm/bl@2.2.1 None 0 59.3 kB matteo.collina
npm/body-parser@1.19.0 network +1 68.6 kB dougwilson
npm/bowser@2.11.0 None 0 217 kB lancedikson
npm/boxen@4.2.0 None 0 12.7 kB sindresorhus
npm/bson@1.1.4 eval 0 773 kB mbroadst

🚮 Removed packages: npm/@ampproject/remapping@2.1.2, npm/@apideck/better-ajv-errors@0.3.3, npm/@babel/compat-data@7.17.0, npm/@babel/core@7.17.5, npm/@babel/generator@7.17.3, npm/@babel/helper-compilation-targets@7.16.7, npm/@babel/helper-create-class-features-plugin@7.17.6, npm/@babel/helper-function-name@7.16.7, npm/@babel/helper-get-function-arity@7.16.7, npm/@babel/helper-member-expression-to-functions@7.16.7, npm/@babel/helper-module-transforms@7.17.6, npm/@babel/helper-simple-access@7.16.7, npm/@babel/helpers@7.17.2, npm/@babel/highlight@7.16.10, npm/@babel/parser@7.17.3, npm/@babel/plugin-proposal-decorators@7.17.2, npm/@babel/plugin-syntax-bigint@7.8.3, npm/@babel/plugin-syntax-flow@7.16.7, npm/@babel/plugin-syntax-import-meta@7.10.4, npm/@babel/plugin-syntax-typescript@7.16.7, npm/@babel/plugin-transform-destructuring@7.17.3, npm/@babel/plugin-transform-flow-strip-types@7.16.7

View full report↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants