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/[email protected] None +7 35.3 MB dev.goparrot.ai
npm/@koa/[email protected] None +1 26.6 kB fengmk2
npm/@types/[email protected] None 0 30.6 kB types
npm/@types/[email protected] Transitive: environment, filesystem, unsafe +48 1.58 MB types
npm/@types/[email protected] None 0 5.51 kB types
npm/@types/[email protected] None 0 20.5 kB types
npm/@types/[email protected] None +1 10.9 kB types
npm/@types/[email protected] None +16 173 kB types
npm/@types/[email protected] None 0 113 kB types
npm/@types/[email protected] None 0 25.3 kB types
npm/@types/[email protected] None 0 9.3 kB types
npm/@types/[email protected] None 0 4.46 kB types
npm/@types/[email protected] None 0 4.47 kB types
npm/@types/[email protected] None 0 72.4 kB types
npm/[email protected] Transitive: environment, eval, filesystem, unsafe +25 2.67 MB esp
npm/[email protected] environment, network Transitive: filesystem +7 789 kB jasonsaayman
npm/[email protected] environment, filesystem, shell 0 173 kB abetomo
npm/[email protected] environment, filesystem 0 123 kB pi0
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +272 19.4 MB simenb
npm/[email protected] environment, filesystem Transitive: eval, network, shell, unsafe +49 18.5 MB bcherny
npm/[email protected] Transitive: environment, eval, filesystem, network, unsafe +39 1.55 MB dlau
npm/[email protected] network Transitive: environment +10 244 kB niftylettuce
npm/[email protected] Transitive: environment, eval, filesystem, network +15 231 kB coderhaoxin
npm/[email protected] environment, network, unsafe Transitive: eval, filesystem +40 821 kB fengmk2
npm/[email protected] None 0 3.87 MB icambron
npm/[email protected] filesystem, network Transitive: environment +10 1.06 MB dougwilson
npm/[email protected] None +2 55.2 kB kibertoad
npm/[email protected] None +1 66.3 MB taozhi8833998
npm/[email protected] Transitive: environment, eval, filesystem, network, shell +115 115 MB octokitbot
npm/[email protected] None 0 93.5 kB pjmolina
npm/[email protected] None +2 129 kB sindresorhus
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +118 261 MB hotoo
npm/[email protected] None 0 295 kB rbuckton
npm/[email protected] Transitive: eval, unsafe +15 1.65 MB gajus-table
npm/[email protected] filesystem 0 48.6 kB lucagrulla
npm/[email protected] None +1 69.8 kB rxaviers

🚮 Removed packages: npm/@djagger/[email protected], npm/@docusaurus/[email protected], npm/@docusaurus/[email protected], npm/@docusaurus/[email protected], npm/@docusaurus/[email protected], npm/@docusaurus/[email protected], npm/@docusaurus/[email protected], npm/@emotion/[email protected], npm/@emotion/[email protected], npm/@emotion/[email protected], npm/@geo-maps/[email protected], npm/@makotot/[email protected], npm/@mdx-js/[email protected], npm/@mui/[email protected], npm/@mui/[email protected], npm/@mui/[email protected], npm/@mui/[email protected], npm/@primer/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

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/[email protected]
  • Install script: install
  • Source: node-pre-gyp install --fallback-to-build
🚫
Protestware/Troll package npm/[email protected]
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale
🚫
Install scripts npm/[email protected]
  • 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/[email protected] or ignore all packages with @SocketSecurity ignore-all

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