mysql2
3.24.6 · 13 Oct 2026MIT25.7M / weekRepositoryHomepagenpmAtom feed
Upgrading mysql2 From 1.3.2 to 3.23.1
126 releases in betweennotes for 93
Reading releases, release notes and advisories…
Counted from 93 of 126 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking3.16.3
- Breaking3.11.2
- Breaking3.4.3
Security
Fixes 7 advisories affecting 1.3.2
- 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 cache poisoning vulnerabilitymoderate · GHSA-mqr2-w7wj-jjgr
- 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
- 3.9.3
Fixes a potential parser cache poisoning attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab
Release by release
- Fixed
security: fix unbounded decompression of server-supplied compressed packets, reported by alanturing881
- Fixed
parser: call typeCast for NULL values in the binary protocol
- Fixed
- New
Return unsafe integers inside JSON columns as exact strings with supportBigNumbers
- New
sql-escaper: add Temporal support when escaping values
- New
Support MariaDB data types (UUID, INET4, INET6, VECTOR, JSON) via extended type metadata; run CI against MariaDB
- New
- Fixed
sql-escaper: resolve multi statement and expand object regressions
- Fixed
- Fixed
Keep 00:00:00 time for TIMESTAMP in binary protocol with dateStrings
- Fixed
- Fixed
pool: reject queued requests on end
- Fixed
- Fixed
Allow resetOnRelease in connection config validation
- Fixed
- Fixed
promise: point rejection stacks at caller for promise API
- Fixed
5 other lines we could not sort, mostly version bumps
- 3.0.0
- 3.0.0
chaiandmochamoved to devDependencies #1774 - 3.0.0
Amazon RDS ssl certificates updated including AWS China #1754
- 3.0.0
TCP_NODELAYflag enabled, avoiding long connect timeout in some scenarios #1751 - 3.0.0
Typing improvements
6 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.