Skip to content

Update dependency mysql2 to v3 [SECURITY]#35

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-mysql2-vulnerability
Open

Update dependency mysql2 to v3 [SECURITY]#35
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-mysql2-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Apr 12, 2024

This PR contains the following updates:

Package Change Age Confidence
mysql2 (source) ^2.1.0 -> ^3.9.8 age confidence

GitHub Vulnerability Alerts

CVE-2024-21507

Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in cache poisoning. An attacker can inject a colon : character within a value of the attacker-crafted key.

CVE-2024-21509

Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through parserFn in text_parser.js and binary_parser.js.

CVE-2024-21508

Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.

CVE-2024-21511

Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.

CVE-2024-21512

Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables.


Release Notes

sidorares/node-mysql2 (mysql2)

v3.9.8

Compare Source

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)

v3.9.7

Compare Source

Bug Fixes
  • security: sanitize timezone parameter value to prevent code injection (#​2608) (7d4b098)

v3.9.6

Compare Source

Bug Fixes
  • binary parser sometimes reads out of packet bounds when results contain null and typecast is false (#​2601) (705835d)

v3.9.5

Compare Source

Bug Fixes

v3.9.4

Compare Source

Bug Fixes

v3.9.3

Compare Source

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)

v3.9.2

Compare Source

Bug Fixes

v3.9.1

Compare Source

Bug Fixes

v3.9.0

Compare Source

Features

v3.8.0

Compare Source

Features
Bug Fixes

v3.7.1

Compare Source

Bug Fixes
  • add condition which allows code in callback to be reachable (#​2376) (8d5b903)

v3.7.0

Compare Source

Features

v3.6.5

Compare Source

Bug Fixes
  • add decodeuricomponent to parse uri encoded special characters in host, username, password and datbase keys (#​2277) (fe573ad)

v3.6.4

Compare Source

Bug Fixes

v3.6.3

Compare Source

Bug Fixes
  • correctly pass values when used with sql-template-strings library (#​2266) (6444f99)

v3.6.2

Compare Source

Bug Fixes

v3.6.1

Compare Source

Bug Fixes
  • EventEmitter on method signatures to use spread syntax (#​2200) (5d21b81)

v3.6.0

Compare Source

Features

v3.5.2

Compare Source

Bug Fixes
  • Update events that are propagated from pool cluster to include remove (#​2114) (927d209)

v3.5.1

Compare Source

Bug Fixes
  • improvements to allow to use Bun and tls (#​2119) (fd44a2a)
  • missing ResultSetHeader[] to query and execute (f649486)

v3.5.0

Compare Source

Features

v3.4.5

Compare Source

Bug Fixes
  • handle prepare response with actual number of parameter definition less than reported in the prepare header. Fixes #​2052 (b658be0)

v3.4.4

Compare Source

Bug Fixes
  • add ProcedureCallPacket to execute overloads (3566ef7)
  • add ProcedureCallPacket to query overloads (352c3bc)
  • add ProcedureCallPacket to promise-based execute overloads (8292416)
  • add ProcedureCallPacket to promise-based query overloads (0f31a41)
  • create ProcedureCallPacket typings (09ad1d2)

v3.4.3

Compare Source

Bug Fixes

v3.4.2

Compare Source

Bug Fixes
  • changing type files to declaration type files (98e6f3a)

v3.4.1

Compare Source

Bug Fixes
  • createPool uri overload (98623dd)
  • PoolCluster typings (3902ca6)
  • create promise-based PoolCluster typings (7f38496)
  • missing parserCache in promise.js (7f35cf5)
  • missing constants in promise.js (4ce2c70)
  • missing keys for Types constant (86655ec)
  • missing typings for Charsets constants (01f77a0)
  • missing typings for CharsetToEncoding constants (609229a)
  • missing typings for parserCache (891a523)
  • missing typings for Types constant (04601dd)
  • rename file of typings Charsets constants (51c4196)

v3.4.0

Compare Source

Features
  • support STATE_GTIDS session track information (2b1520f)

v3.3.5

Compare Source

Bug Fixes

v3.3.4

Compare Source

Bug Fixes
  • PromisePoolConnection import name (76db54a)
  • releaseConnection types and promise (4aac9d6)

v3.3.3

Compare Source

Bug Fixes

v3.3.2

Compare Source

Bug Fixes

v3.3.1

Compare Source

Bug Fixes

v3.3.0

Compare Source

Features
  • Added updated/new error codes gathered from MySQL 8.0 source code (#​1990) (85dc6e5)

v3.2.4

Compare Source

Bug Fixes
  • server: Added missing encoding argument to server-handshake (#​1976) (a4b6b22)

v3.2.3

Compare Source

Bug Fixes

v3.2.2

Compare Source

Bug Fixes
  • ConnectionOptions conflict between mysql and mysql/promise (#​1955) (eca8bda)

v3.2.1

Compare Source

Bug Fixes
  • Add typings for Connection.promise(). (#​1949) (e3ca310)
  • PoolConnection redundancy when extending Connection interface in TypeScript (7c62d11)

v3.2.0

Compare Source

Features
  • maxVersion ssl option to tls.createSecureContext (0c40ef9)

v3.1.2

Compare Source

Bug Fixes
  • update lru-cache reset method to clear (114f266)

v3.1.1

Compare Source

Bug Fixes
  • remove accidental log in caching_sha2_password.js (c1202b6)

v3.1.0

Compare Source

Features
  • cleanup buffer/string conversions in hashing/xor helpers that were failing in Bun (a2392e2)
Bug Fixes
  • when port is pased as a string convert it to a number (Bun's net.connect does not automatically convert this) (703ecb2)

v3.0.1

Compare Source

Miscellaneous Chores

v3.0.0

Compare Source

  • named-placeholders library is updated to use newer lru-cache dependency, allowing it do dedupe and be shared between mysql2 and named-placeholders - #​1711, mysqljs/named-placeholders#19
  • chai and mocha moved to devDependencies #​1774
  • Amazon RDS ssl certificates updated including AWS China #​1754
  • TCP_NODELAY flag enabled, avoiding long connect timeout in some scenarios #​1751
  • typing improvements: #​1675, #​1674
  • fix: ensure pooled connections get released #​1666
Miscellaneous Chores

v2.3.3

Compare Source

v2.3.2

Compare Source

v2.3.1

Compare Source

v2.3.0

Compare Source

v2.2.5

Compare Source

v2.2.4

Compare Source

v2.2.3

Compare Source

v2.2.2

Compare Source

v2.2.1

Compare Source

v2.2.0

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from 1f36ab8 to 74cb290 Compare April 14, 2024 14:11
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 5 times, most recently from eef5dc3 to 6c052f2 Compare April 25, 2024 13:07
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 4 times, most recently from 9a1aa7f to 96e4f25 Compare May 9, 2024 12:11
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from 0e94949 to d86c03d Compare May 15, 2024 22:30
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 3 times, most recently from 7b3d5f2 to ec1025c Compare June 4, 2024 14:50
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from e04df52 to 59d2cdc Compare June 27, 2024 10:31
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from 446f8d9 to 850fb49 Compare July 14, 2024 13:06
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from b05a37f to ef7fdb1 Compare July 21, 2024 13:16
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from ede4e4e to f51280c Compare July 28, 2024 16:11
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 4 times, most recently from b6f3d44 to dd9927b Compare October 9, 2024 10:07
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from ee5679f to fe4533a Compare October 28, 2024 19:39
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch from dfebf6e to 4f33857 Compare December 22, 2024 22:57
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from 8a9e64d to 2a73a80 Compare January 15, 2025 00:38
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 3 times, most recently from 7653351 to 36c92e7 Compare January 30, 2025 15:19
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch from 36c92e7 to 7f7dfae Compare January 30, 2025 20:02
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from b4a56d6 to 2fa28fb Compare February 9, 2025 18:22
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from 73076af to 20fbf18 Compare March 3, 2025 18:36
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 6 times, most recently from f1ef866 to 4ba9365 Compare March 17, 2025 19:10
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from b2ba095 to 129c4a2 Compare April 1, 2025 15:19
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from 1a4253f to 85e9976 Compare April 24, 2025 16:35
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 4 times, most recently from 211b3ca to 783a0e3 Compare May 13, 2025 15:34
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from 3ec0124 to 01a189b Compare May 19, 2025 18:45
@renovate renovate bot force-pushed the renovate/npm-mysql2-vulnerability branch 2 times, most recently from bcac3b0 to 1438652 Compare May 28, 2025 18:15
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.

0 participants