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/fastify@4.9.0 Transitive: environment, eval, filesystem, shell +20 1.69 MB felixmosh
npm/@fastify/auth@4.2.0 None 0 50.5 kB eomm
npm/@fastify/redis@6.1.0 None 0 23.9 kB eomm
npm/@koa/cors@3.4.3 None 0 17.9 kB fengmk2
npm/@mailchimp/mailchimp_transactional@1.0.50 Transitive: environment, network +2 456 kB mailchimp
npm/@types/async@3.2.16 None 0 30.3 kB types
npm/@types/cron@2.0.0 None 0 12 kB types
npm/@types/html-minifier@4.0.2 None +3 63.3 kB types
npm/@types/jest@28.1.8 Transitive: environment, filesystem +35 1.36 MB types
npm/@types/koa__cors@3.3.0 None 0 5.79 kB types
npm/@types/koa-router@7.4.4 None 0 21.1 kB types
npm/@types/koa-static@4.0.2 None +1 12.2 kB types
npm/@types/koa@2.13.5 None +15 161 kB types
npm/@types/luxon@2.4.0 None 0 113 kB types
npm/@types/mjml-react@2.0.6 None 0 22.6 kB types
npm/@types/mjml@4.7.0 None +1 13.2 kB types
npm/@types/mysql@2.15.21 None 0 25.8 kB types
npm/@types/node-schedule@2.1.0 None 0 9.65 kB types
npm/@types/nodemailer@6.4.6 None 0 88.9 kB types
npm/@types/react-dom@17.0.18 None 0 21 kB types
npm/@types/react@17.0.52 None +3 1.37 MB types
npm/@types/tail@2.2.1 None 0 5.13 kB types
npm/@types/tap@15.0.7 None 0 34.2 kB types
npm/@types/tiny-async-pool@1.0.1 None 0 4.99 kB types
npm/@types/validator@13.7.10 None 0 66.6 kB types
npm/axios@0.27.2 environment, network Transitive: filesystem +7 788 kB jasonsaayman
npm/bufferutil@4.0.7 Transitive: environment, filesystem +1 422 kB lpinca
npm/bullmq@3.4.1 filesystem, network, shell 0 1.18 MB manast
npm/commander@9.4.1 environment, filesystem, shell 0 170 kB abetomo
npm/consola@2.15.3 environment, filesystem 0 123 kB pi0
npm/cron-parser@4.7.0 filesystem 0 151 kB harrisiirak
npm/cron@2.1.0 shell +1 3.15 MB ncb000gt
npm/encoding@0.1.13 None +1 356 kB andris
npm/eslint@8.28.0 filesystem Transitive: environment, eval, shell, unsafe +54 9.08 MB eslintbot
npm/fast-glob@3.2.12 filesystem +11 353 kB mrmlnc
npm/html-minifier@4.0.0 Transitive: environment, filesystem, network, shell +6 760 kB alexlamsl
npm/husky@8.0.2 environment, filesystem, shell 0 6.39 kB typicode
npm/ioredis@5.2.4 network Transitive: environment +7 870 kB ioredis-robot
npm/json-schema-to-typescript@11.0.2 environment, filesystem Transitive: eval, network, shell +37 5.13 MB bcherny
npm/koa-body@5.0.0 Transitive: filesystem +7 196 kB dlau
npm/koa-router@10.1.1 network Transitive: environment, eval +7 147 kB niftylettuce
npm/koa-static@5.0.0 Transitive: environment, eval, filesystem, network +8 183 kB coderhaoxin
npm/koa@2.14.1 environment, network, unsafe Transitive: eval, filesystem +30 720 kB fengmk2
npm/lint-staged@13.0.3 Transitive: environment, filesystem, shell +22 804 kB okonet
npm/lru-cache@7.14.1 None 0 75.2 kB isaacs
npm/luxon@2.5.0 None 0 3.87 MB icambron
npm/mysql@2.18.1 filesystem, network +1 883 kB dougwilson
npm/node-schedule@2.1.0 Transitive: eval, filesystem +12 3.4 MB kibertoad
npm/nodemailer@6.8.0 environment, filesystem, network, shell 0 486 kB andris
npm/octokit@1.8.1 Transitive: eval, network +44 7.62 MB octokitbot

🚮 Removed packages: npm/@babel/code-frame@7.16.0, npm/@babel/compat-data@7.16.0, npm/@babel/helper-compilation-targets@7.16.3, npm/@babel/helper-module-imports@7.16.0, npm/@babel/helper-plugin-utils@7.14.5, npm/@babel/parser@7.16.3, npm/@babel/plugin-proposal-class-properties@7.16.0, npm/@babel/plugin-proposal-object-rest-spread@7.16.0, npm/@babel/plugin-proposal-unicode-property-regex@7.16.0, npm/@babel/plugin-transform-destructuring@7.16.0, npm/@babel/plugin-transform-dotall-regex@7.16.0, npm/@babel/plugin-transform-regenerator@7.16.0, npm/@babel/runtime@7.16.3, npm/@babel/traverse@7.16.3, npm/@babel/types@7.16.0, npm/@fastify/auth@4.6.1, npm/@fastify/redis@6.2.0, npm/@fastify/type-provider-json-schema-to-ts@2.1.1, npm/@ossinsight/api-server@1.0.0, npm/@rails/actioncable@6.1.4, npm/@rails/activestorage@6.1.4, npm/@rails/ujs@6.1.4, npm/@rails/webpacker@5.4.3, npm/@types/json-schema@7.0.9, npm/accepts@1.3.7, npm/ajv-keywords@3.5.2, npm/bn.js@5.2.0, npm/brorand@1.1.0, npm/browserify-aes@1.2.0, npm/browserify-rsa@4.1.0, npm/browserslist@4.17.6, npm/bullmq@3.15.8, npm/caniuse-lite@1.0.30001280, npm/chokidar@3.5.2, npm/cipher-base@1.0.4, npm/core-js-compat@3.19.1, npm/create-hash@1.2.0, npm/create-hmac@1.1.7, npm/cross-spawn@6.0.5, npm/css-color-names@0.0.4, npm/debug@4.3.2, npm/duplexify@3.7.1, npm/enhanced-resolve@4.5.0, npm/errno@0.1.8, npm/es-abstract@1.19.1, npm/evp_bytestokey@1.0.3, npm/expand-tilde@2.0.2, npm/extend-shallow@3.0.2, npm/ioredis@5.4.1, npm/openai@3.1.0, npm/pino-pretty@9.1.1, npm/pino@8.7.0, npm/prom-client@14.1.0, npm/randexp@0.5.3, npm/socket.io-client@4.5.4, npm/socket.io@4.5.4, npm/testcontainers@9.0.0, npm/types-fastify-socket.io@0.0.1, npm/typescript@4.9.3, npm/yaml@2.1.3

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/es5-ext@0.10.62
  • 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.62
  • Install script: postinstall
  • Source: node -e "try{require('./_postinstall')}catch(e){}" || exit 0
Install scripts npm/fast-folder-size@1.6.1
  • Install script: postinstall
  • Source: node get-sysinternals-du.js
  • orphan: npm/fast-folder-size@1.6.1
Install scripts npm/@prisma/engines@4.6.1
  • Install script: postinstall
  • Source: node scripts/postinstall.js
  • orphan: npm/@prisma/engines@4.6.1
Install scripts npm/esbuild@0.15.16
  • orphan: npm/esbuild@0.15.16
Install scripts npm/nodejieba@2.5.2
  • Install script: install
  • Source: node-pre-gyp install --fallback-to-build
  • orphan: npm/nodejieba@2.5.2

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/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/es5-ext@0.10.62
  • @SocketSecurity ignore npm/fast-folder-size@1.6.1
  • @SocketSecurity ignore npm/@prisma/engines@4.6.1
  • @SocketSecurity ignore npm/esbuild@0.15.16
  • @SocketSecurity ignore npm/nodejieba@2.5.2

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