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.9.7 #734

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

Conversation

q1blue
Copy link
Collaborator

@q1blue q1blue commented May 29, 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.9.7.

ℹ️ 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 43 versions ahead of your current version.

  • The recommended version was released on a month 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
Release notes
Package name: mysql2
  • 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.2 (2024-02-26)

    Bug Fixes

  • 3.9.1 - 2024-01-29

    3.9.1 (2024-01-29)

    Bug Fixes

    • types: support encoding for string type cast (#2407) (1dc2011)
  • 3.9.0 - 2024-01-26

    3.9.0 (2024-01-26)

    Features

  • 3.8.0 - 2024-01-23

    3.8.0 (2024-01-23)

    Features

    Bug Fixes

    • stream: premature close when using for await (#2389) (af47148)
    • types: add missing types to TypeCast (#2390) (78ce495)
    • removeIdleTimeoutConnectionsTimer isn't cleared on pool close (#2384) (18a44f6)
  • 3.7.1 - 2024-01-17

    3.7.1 (2024-01-17)

    Bug Fixes

    • add condition which allows code in callback to be reachable (#2376) (8d5b903)
  • 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.9.7.

See this package in npm:
mysql2

See this project in Snyk:
https://app.snyk.io/org/q1blue-rxw/project/f47ee56b-aa30-4f69-ad51-7f8788c338a3?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

changeset-bot bot commented May 29, 2024

⚠️ No Changeset found

Latest commit: 5f44324

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/@bull-board/[email protected] Transitive: environment, eval, filesystem, shell +20 1.69 MB felixmosh
npm/@fastify/[email protected] None 0 50.5 kB eomm
npm/@fastify/[email protected] None 0 23.9 kB eomm
npm/@koa/[email protected] None 0 17.9 kB fengmk2
npm/@mailchimp/[email protected] Transitive: environment, network +2 456 kB mailchimp
npm/@types/[email protected] None 0 30.3 kB types
npm/@types/[email protected] None 0 12 kB types
npm/@types/[email protected] None +3 63.3 kB types
npm/@types/[email protected] Transitive: environment, filesystem +35 1.36 MB types
npm/@types/[email protected] None 0 5.79 kB types
npm/@types/[email protected] None 0 21.1 kB types
npm/@types/[email protected] None +1 12.2 kB types
npm/@types/[email protected] None +15 161 kB types
npm/@types/[email protected] None 0 113 kB types
npm/@types/[email protected] None 0 22.6 kB types
npm/@types/[email protected] None +1 13.2 kB types
npm/@types/[email protected] None 0 25.8 kB types
npm/@types/[email protected] None 0 9.65 kB types
npm/@types/[email protected] None 0 88.9 kB types
npm/@types/[email protected] None 0 21 kB types
npm/@types/[email protected] None +3 1.37 MB types
npm/@types/[email protected] None 0 5.13 kB types
npm/@types/[email protected] None 0 34.2 kB types
npm/@types/[email protected] None 0 4.99 kB types
npm/@types/[email protected] None 0 66.6 kB types
npm/[email protected] environment, network Transitive: filesystem +7 788 kB jasonsaayman
npm/[email protected] Transitive: environment, filesystem +1 422 kB lpinca
npm/[email protected] filesystem, network, shell 0 1.18 MB manast
npm/[email protected] environment, filesystem, shell 0 170 kB abetomo
npm/[email protected] environment, filesystem 0 123 kB pi0
npm/[email protected] filesystem 0 151 kB harrisiirak
npm/[email protected] shell +1 3.15 MB ncb000gt
npm/[email protected] None +1 356 kB andris
npm/[email protected] filesystem Transitive: environment, eval, shell, unsafe +54 9.08 MB eslintbot
npm/[email protected] filesystem +11 353 kB mrmlnc
npm/[email protected] Transitive: environment, filesystem, network, shell +6 760 kB alexlamsl
npm/[email protected] environment, filesystem, shell 0 6.39 kB typicode
npm/[email protected] network Transitive: environment +7 870 kB ioredis-robot
npm/[email protected] environment, filesystem Transitive: eval, network, shell +37 5.13 MB bcherny
npm/[email protected] Transitive: filesystem +7 196 kB dlau
npm/[email protected] network Transitive: environment, eval +7 147 kB niftylettuce
npm/[email protected] Transitive: environment, eval, filesystem, network +8 183 kB coderhaoxin
npm/[email protected] environment, network, unsafe Transitive: eval, filesystem +30 720 kB fengmk2
npm/[email protected] Transitive: environment, filesystem, shell +22 804 kB okonet
npm/[email protected] None 0 75.2 kB isaacs
npm/[email protected] None 0 3.87 MB icambron
npm/[email protected] filesystem, network +1 883 kB dougwilson
npm/[email protected] Transitive: eval, filesystem +12 3.4 MB kibertoad
npm/[email protected] environment, filesystem, network, shell 0 486 kB andris
npm/[email protected] Transitive: eval, network +44 7.62 MB octokitbot

🚮 Removed packages: npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@fastify/[email protected], npm/@fastify/[email protected], npm/@fastify/[email protected], npm/@ossinsight/[email protected], npm/@rails/[email protected], npm/@rails/[email protected], npm/@rails/[email protected], npm/@rails/[email protected], npm/@types/[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], 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 NoteSource
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
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: node get-sysinternals-du.js
Install scripts npm/@prisma/[email protected]
  • Install script: postinstall
  • Source: node scripts/postinstall.js
Install scripts npm/[email protected]
Install scripts npm/[email protected]
  • Install script: install
  • Source: node-pre-gyp install --fallback-to-build

View full report↗︎

Next steps

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 my come along with functionality unrelated to its primary purpose.

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.

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