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 mysql2 from 2.3.3 to 3.10.2 #777

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

Conversation

q1blue
Copy link
Collaborator

@q1blue q1blue commented Jul 22, 2024

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade mysql2 from 2.3.3 to 3.10.2.

ℹ️ 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.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

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

  • The recommended version was released on 22 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Prototype Poisoning
SNYK-JS-MYSQL2-6591084
157 Proof of Concept
critical severity Remote Code Execution (RCE)
SNYK-JS-MYSQL2-6591085
157 Proof of Concept
medium severity Improper Input Validation
SNYK-JS-MYSQL2-6591300
157 Proof of Concept
critical severity Arbitrary Code Injection
SNYK-JS-MYSQL2-6670046
157 Proof of Concept
high severity Prototype Pollution
SNYK-JS-MYSQL2-6861580
157 Proof of Concept
Release notes
Package name: mysql2
  • 3.10.2 - 2024-07-01

    3.10.2 (2024-07-01)

    Bug Fixes

    • typeCast: ensure the same behavior for field.string() with query and execute (#2820) (27e38ea)
  • 3.10.1 - 2024-06-13

    3.10.1 (2024-06-13)

    Bug Fixes

  • 3.10.0 - 2024-05-30

    3.10.0 (2024-05-30)

    Features

    Bug Fixes

    • stream: reads should emit the dataset number for each dataset (#2496, #2628) (4dab4ca)
  • 3.9.9 - 2024-05-29

    3.9.9 (2024-05-29)

    Bug Fixes

    • connection config: remove keepAliveInitialDelay default value (#2712) (688ebab)
  • 3.9.8 - 2024-05-26

    3.9.8 (2024-05-26)

    Bug Fixes

    • security: sanitize fields and tables when using nestTables (#2702) (efe3db5)
    • support deno + caching_sha2_password FULL_AUTHENTICATION_PACKET flow (#2704) (2e03694)
    • typings: typo from jonServerPublicKey to onServerPublicKey (#2699) (8b5f691)
  • 3.9.7 - 2024-04-21

    3.9.7 (2024-04-21)

    Bug Fixes

    • security: sanitize timezone parameter value to prevent code injection - report by zhaoyudi (Nebulalab) (#2608) (7d4b098)
  • 3.9.6 - 2024-04-18

    3.9.6 (2024-04-18)

    Bug Fixes

    • binary parser sometimes reads out of packet bounds when results contain null and typecast is false (#2601) (705835d)
  • 3.9.5 - 2024-04-17

    3.9.5 (2024-04-17)

    Bug Fixes

    • revert breaking change in results creation (#2591) (f7c60d0)
  • 3.9.4 - 2024-04-09

    3.9.4 (2024-04-09)

    Bug Fixes

    • SSL: separate each certificate into an individual item #2542 (63f1055)
    • security: improve supportBigNumbers and bigNumberStrings sanitization (#2572) (74abf9e)
      • Fixes a potential RCE attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab
    • security: improve results object creation (#2574) (4a964a3)
      • Fixes a potential Prototype Pollution attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab
    • docs: improve the contribution guidelines (#2552) (8a818ce)
  • 3.9.3 - 2024-03-26

    3.9.3 (2024-03-26)

    Bug Fixes

    • security: improve cache key formation (#2424) (0d54b0c)
      • Fixes a potential parser cache poisoning attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab
    • update Amazon RDS SSL CA cert (#2131) (d9dccfd)
  • 3.9.2 - 2024-02-26
  • 3.9.1 - 2024-01-29
  • 3.9.0 - 2024-01-26
  • 3.8.0 - 2024-01-23
  • 3.7.1 - 2024-01-17
  • 3.7.0 - 2024-01-07
  • 3.6.5 - 2023-11-22
  • 3.6.4 - 2023-11-21
  • 3.6.3 - 2023-11-03
  • 3.6.2 - 2023-10-15
  • 3.6.1 - 2023-09-09
  • 3.6.0 - 2023-08-04
  • 3.5.2 - 2023-07-17
  • 3.5.1 - 2023-07-10
  • 3.5.0 - 2023-07-06
  • 3.4.5 - 2023-07-05
  • 3.4.4 - 2023-07-04
  • 3.4.3 - 2023-06-30
  • 3.4.2 - 2023-06-26
  • 3.4.1 - 2023-06-24
  • 3.4.0 - 2023-06-19
  • 3.3.5 - 2023-06-13
  • 3.3.4 - 2023-06-11
  • 3.3.3 - 2023-05-27
  • 3.3.2 - 2023-05-23
  • 3.3.1 - 2023-05-11
  • 3.3.0 - 2023-05-06
  • 3.2.4 - 2023-04-25
  • 3.2.3 - 2023-04-16
  • 3.2.2 - 2023-04-16
  • 3.2.1 - 2023-04-13
  • 3.2.0 - 2023-03-03
  • 3.1.2 - 2023-02-08
  • 3.1.1 - 2023-02-07
  • 3.1.0 - 2023-01-30
  • 3.0.1 - 2023-01-13
  • 3.0.0 - 2023-01-12
  • 3.0.0-rc.1 - 2022-11-06
  • 2.3.3 - 2021-11-14
from mysql2 GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • 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:

Snyk has created this PR to upgrade mysql2 from 2.3.3 to 3.10.2.

See this package in npm:
mysql2

See this project in Snyk:
https://app.snyk.io/org/q1blue-rxw/project/061589ad-3276-41ad-ab3d-5cb52331031e?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

changeset-bot bot commented Jul 22, 2024

⚠️ No Changeset found

Latest commit: b99b3b9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

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

Package New capabilities Transitives Size Publisher
npm/@goparrot/geocoder@4.5.0 None +7 35.3 MB dev.goparrot.ai
npm/@koa/cors@3.4.3 None +1 26.6 kB fengmk2
npm/@types/async@3.2.24 None 0 30.6 kB types
npm/@types/jest@28.1.8 Transitive: environment, filesystem, unsafe +48 1.58 MB types
npm/@types/koa__cors@3.3.1 None 0 5.51 kB types
npm/@types/koa-router@7.4.8 None 0 20.5 kB types
npm/@types/koa-static@4.0.4 None +1 10.9 kB types
npm/@types/koa@2.15.0 None +16 173 kB types
npm/@types/luxon@2.4.0 None 0 113 kB types
npm/@types/mysql@2.15.26 None 0 25.3 kB types
npm/@types/node-schedule@2.1.7 None 0 9.3 kB types
npm/@types/tail@2.2.3 None 0 4.46 kB types
npm/@types/tiny-async-pool@1.0.5 None 0 4.47 kB types
npm/@types/validator@13.12.0 None 0 72.4 kB types
npm/ajv-cli@5.0.0 Transitive: environment, eval, filesystem, unsafe +25 2.67 MB esp
npm/axios@0.27.2 environment, network Transitive: filesystem +7 789 kB jasonsaayman
npm/commander@9.5.0 environment, filesystem, shell 0 173 kB abetomo
npm/consola@2.15.3 environment, filesystem 0 123 kB pi0
npm/jest@28.1.3 Transitive: environment, eval, filesystem, network, shell, unsafe +272 19.4 MB simenb
npm/json-schema-to-typescript@11.0.5 environment, filesystem Transitive: eval, network, shell, unsafe +49 18.5 MB bcherny
npm/koa-body@5.0.0 Transitive: environment, eval, filesystem, network, unsafe +39 1.55 MB dlau
npm/koa-router@10.1.1 network Transitive: environment +10 244 kB niftylettuce
npm/koa-static@5.0.0 Transitive: environment, eval, filesystem, network +15 231 kB coderhaoxin
npm/koa@2.15.3 environment, network, unsafe Transitive: eval, filesystem +40 821 kB fengmk2
npm/luxon@2.5.2 None 0 3.87 MB icambron
npm/mysql@2.18.1 filesystem, network Transitive: environment +10 1.06 MB dougwilson
npm/node-schedule@2.1.1 None +2 55.2 kB kibertoad
npm/node-sql-parser@4.18.0 None +1 66.3 MB taozhi8833998
npm/octokit@1.8.1 Transitive: environment, eval, filesystem, network, shell +115 115 MB octokitbot
npm/openapi3-ts@3.2.0 None 0 93.5 kB pjmolina
npm/p-queue@7.4.1 None +2 129 kB sindresorhus
npm/pinyin@3.0.0-alpha.5 Transitive: environment, eval, filesystem, network, shell, unsafe +118 261 MB hotoo
npm/reflect-metadata@0.1.14 None 0 295 kB rbuckton
npm/table@6.8.2 Transitive: eval, unsafe +15 1.65 MB gajus-table
npm/tail@2.2.6 filesystem 0 48.6 kB lucagrulla
npm/tiny-async-pool@1.3.0 None +1 69.8 kB rxaviers

🚮 Removed packages: npm/@djagger/echartsx@0.0.22, npm/@docusaurus/core@2.1.0, npm/@docusaurus/module-type-aliases@2.1.0, npm/@docusaurus/plugin-client-redirects@2.1.0, npm/@docusaurus/plugin-google-gtag@2.1.0, npm/@docusaurus/preset-classic@2.1.0, npm/@docusaurus/theme-search-algolia@2.1.0, npm/@emotion/react@11.10.4, npm/@emotion/server@11.10.0, npm/@emotion/styled@11.10.4, npm/@geo-maps/countries-land-10km@0.6.0, npm/@makotot/ghostui@2.0.0, npm/@mdx-js/react@1.6.22, npm/@mui/icons-material@5.10.9, npm/@mui/lab@5.0.0-alpha.104, npm/@mui/material@5.10.10, npm/@mui/x-data-grid@5.17.8, npm/@primer/octicons-react@16.3.1, npm/chance@1.1.12, npm/concurrently@7.6.0, npm/fastify-cli@5.9.0, npm/fastify-metrics@10.6.0, npm/fastify-plugin@4.5.1, npm/fastify-socket.io@4.0.0, npm/fastify-tsconfig@1.0.1, npm/fastify@4.28.1, npm/glob@8.1.0, npm/ioredis@5.4.1, npm/jest@29.7.0, npm/json-schema-to-ts@2.12.0, npm/mysql2@2.3.3, npm/node-sql-parser@4.5.1, npm/octokit@2.1.0, npm/openai@3.3.0, npm/pino-pretty@9.4.1, npm/pino@8.21.0, npm/randexp@0.5.3, npm/socket.io-client@4.7.5, npm/testcontainers@9.12.0, npm/ts-jest@29.2.3, npm/types-fastify-socket.io@0.0.1

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/nodejieba@2.5.2
  • Install script: install
  • Source: node-pre-gyp install --fallback-to-build
🚫
Protestware/Troll package npm/es5-ext@0.10.64
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale
🚫
Install scripts npm/es5-ext@0.10.64
  • Install script: postinstall
  • Source: node -e "try{require('./_postinstall')}catch(e){}" || exit 0
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is protestware?

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Consider that consuming this package may come along with functionality unrelated to its primary purpose.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/nodejieba@2.5.2
  • @SocketSecurity ignore npm/es5-ext@0.10.64

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