node-sql-template-strings
node-sql-template-strings copied to clipboard
chore(deps): update dependency mysql2 to v3 [security]
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
mysql2 (source) | ^1.1.2 -> ^3.0.0 |
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
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
toonServerPublicKey
(#​2699) (8b5f691)
v3.9.7
Bug Fixes
v3.9.6
Bug Fixes
- binary parser sometimes reads out of packet bounds when results contain null and typecast is false (#​2601) (705835d)
v3.9.5
Bug Fixes
v3.9.4
Bug Fixes
- docs: improve the contribution guidelines (#​2552) (8a818ce)
- security: improve results object creation (#​2574) (4a964a3)
- security: improve supportBigNumbers and bigNumberStrings sanitization (#​2572) (74abf9e)
v3.9.3
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
Bug Fixes
- stream: premature close when it is paused (#​2416) (7c6bc64)
- types: expose TypeCast types (#​2425) (336a7f1)
v3.9.1
Bug Fixes
v3.9.0
Features
v3.8.0
Features
Bug Fixes
-
stream: premature close when using
for await
(#​2389) (af47148) - The removeIdleTimeoutConnectionsTimer did not clean up when the … (#​2384) (18a44f6)
- types: add missing types to TypeCast (#​2390) (78ce495)
v3.7.1
Bug Fixes
v3.7.0
Features
v3.6.5
Bug Fixes
- add decodeuricomponent to parse uri encoded special characters in host, username, password and datbase keys (#​2277) (fe573ad)
v3.6.4
Bug Fixes
- malformed FieldPacket (#​2280) (8831e09)
- move missing options to
ConnectionOptions
(#​2288) (5cd7639)
v3.6.3
Bug Fixes
v3.6.2
Bug Fixes
v3.6.1
Bug Fixes
v3.6.0
Features
v3.5.2
Bug Fixes
v3.5.1
Bug Fixes
- improvements to allow to use Bun and tls (#​2119) (fd44a2a)
- missing
ResultSetHeader[]
toquery
andexecute
(f649486)
v3.5.0
Features
v3.4.5
Bug Fixes
- handle prepare response with actual number of parameter definition less than reported in the prepare header. Fixes #​2052 (b658be0)
v3.4.4
Bug Fixes
- add
ProcedureCallPacket
toexecute
overloads (3566ef7) - add
ProcedureCallPacket
toquery
overloads (352c3bc) - add
ProcedureCallPacket
to promise-basedexecute
overloads (8292416) - add
ProcedureCallPacket
to promise-basedquery
overloads (0f31a41) - create
ProcedureCallPacket
typings (09ad1d2)
v3.4.3
Bug Fixes
v3.4.2
Bug Fixes
- changing type files to declaration type files (98e6f3a)
v3.4.1
Bug Fixes
-
createPool
uri overload (98623dd) -
PoolCluster
typings (3902ca6) - create promise-based
PoolCluster
typings (7f38496) - missing
parserCache
inpromise.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
Features
- support STATE_GTIDS session track information (2b1520f)
v3.3.5
Bug Fixes
-
createPool
promise
asPromisePool
(#​2060) (ff3c36c) - keepAliveInitialDelay not taking effect (#​2043) (585911c)
v3.3.4
Bug Fixes
v3.3.3
Bug Fixes
v3.3.2
Bug Fixes
v3.3.1
Bug Fixes
v3.3.0
Features
v3.2.4
Bug Fixes
v3.2.3
Bug Fixes
- types: add decimalNumbers to createConnection/createPool typings. fixes #​1803 (#​1817) (bb48462)
v3.2.2
Bug Fixes
v3.2.1
Bug Fixes
- Add typings for Connection.promise(). (#​1949) (e3ca310)
- PoolConnection redundancy when extending Connection interface in TypeScript (7c62d11)
v3.2.0
Features
- maxVersion ssl option to tls.createSecureContext (0c40ef9)
v3.1.2
Bug Fixes
- update
lru-cache
reset method to clear (114f266)
v3.1.1
Bug Fixes
- remove accidental log in caching_sha2_password.js (c1202b6)
v3.1.0
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
Miscellaneous Chores
- release 3.0.1 (d5a6b2c)
v3.0.0
- named-placeholders library is updated to use newer
lru-cache
dependency, allowing it do dedupe and be shared between mysql2 and named-placeholders - https://github.com/sidorares/node-mysql2/issues/1711, https://github.com/mysqljs/named-placeholders/pull/19 -
chai
andmocha
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
- release 3.0.0 (11692b2)
v2.3.3
v2.3.2
v2.3.1
v2.3.0
v2.2.5
v2.2.4
v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.0
v2.0.2
v2.0.1
v2.0.0
v1.7.0
v1.6.6
v1.6.5
v1.6.4
v1.6.3
v1.6.2
v1.6.1
v1.6.0
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 is behind base branch, 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.