mysql2
3.24.6 · 13 Oct 2026MIT25.7M / weekRepositoryHomepagenpmAtom feed
Upgrading mysql2 From 3.9.3 to 3.24.6
65 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking3.16.3
- Breaking3.11.2
Security
Fixes 6 advisories affecting 3.9.3
- MySQL2: Auth Plugin Downgrade to mysql_clear_password Leaks Plaintext Credentialshigh · GHSA-3f6p-5ww8-9rcr
- mysql2 vulnerable to Prototype Poisoningmoderate · GHSA-49j4-86m8-q2jw
- MySQL2 for Node Arbitrary Code Injectioncritical · GHSA-4rch-2fh8-94vw
- mysql2 Remote Code Execution (RCE) via the readCodeFor functioncritical · GHSA-fpw7-j2hg-69v5
- mysql2 vulnerable to Prototype Pollutionhigh · GHSA-pmh2-wpjm-fj45
- MySQL2: Unbounded zlib inflate in compressed MySQL protocol handler allows decompression-bomb DoSmoderate · GHSA-rgwj-5xj2-c3m3
- 3.19.1
Bound
null-terminated string read to packet end (fixes a potential OOB read reported by Doruk Tan Ozturk (peaktwilight)) - 3.19.1
Handle malformed geometry payloads (fixes a potential DoS vulnerability reported by Doruk Tan Ozturk (peaktwilight))
- 3.19.1
Prevent query param override of
URL-defined connection options (fixes a potential config injection vulnerability reported by Doruk Tan Ozturk (peaktwilight)) - 3.19.1
Validate buffer bounds in geometry parser (fixes a potential DoS vulnerability reported by Doruk Tan Ozturk (peaktwilight))
- 3.17.0
security: resolve a potential SQL injection bypass through objects
- 3.9.7
security: sanitize timezone parameter value to prevent code injection - report by zhaoyudi (Nebulalab)
- 3.9.4
Fixes a potential RCE attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab
- 3.9.4
Fixes a potential Prototype Pollution attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab
Release by release
- Fixed
Strip the brackets from an IPv6 host in a connection URI
- Fixed
- New
per-query overhead, local dates, short strings, TLS context and compression
- New
Reuse TLS sessions across connections to the same server
- New
- Fixed
typings: PoolCluster node events emit a string nodeId
- Fixed
- New
single-pass utf8 string encoding for outgoing packets
- New
- New
Typed parameters, and adopt integer types the server reports
- New
Remove per-query and per-row allocation hotspots
- New
Serialize COM_STMT_EXECUTE in a single exact-size pass
- Fixed
Zero dates come back as "undefined 00:00:00" with dateStrings
- New
- Fixed
Keep leading zeros in TIME fractional seconds
- Fixed
typings: align callback Pool and PoolConnection types with runtime
- Fixed
3 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.