Packages

mysql2

3.24.6 · 13 Oct 2026MIT25.7M / weekRepositoryHomepagenpmAtom feed

Upgrading mysql2 From 1.5.1 to 3.24.6

127 releases in betweennotes for 103

Reading releases, release notes and advisories…

Other targets from 1.5.1Newest 1.x1.7.0Clears its 7 advisories3.23.1
2.0.0 has no release note on GitHub or in the repository's changelog, so its breaking changes are missing from the counts below.
  1. 1.5.1yours
  2. 10 releases
  3. 2.0.0major
  4. 13 releases
  5. 3.0.0major
  6. 36 releases
  7. 3.9.3security
  8. 3.9.4security
  9. 2 releases
  10. 3.9.7security
  11. 28 releases
  12. 3.17.0security
  13. 9 releases
  14. 3.19.1security
  15. 21 releases
  16. 3.24.6target
  17. 6 pre
3+
changes to make
7
advisories fixed
48+
new
115+
fixes

Counted from 103 of 127 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

  • 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.19.1
  • security: resolve a potential SQL injection bypass through objects

    3.17.0
  • security: sanitize timezone parameter value to prevent code injection - report by zhaoyudi (Nebulalab)

    3.9.7
  • 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.4
  • Fixes a potential parser cache poisoning attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab

    3.9.3

Release by release

  1. 3.24.6

    13 Oct 20261 fix
    • Fixed

      Allocate a new LOCAL INFILE terminator packet per write (#4580) (8c068ef), closes #4568

  2. 3.24.5

    29 Sep 20261 fix
    • Fixed

      Strip the brackets from an IPv6 host in a connection URI

  3. 3.24.4

    8 Sep 20262 new
    • New

      per-query overhead, local dates, short strings, TLS context and compression

    • New

      Reuse TLS sessions across connections to the same server

  4. 3.24.3

    2 Sep 20261 fix
    • Fixed

      typings: PoolCluster node events emit a string nodeId

  5. 3.24.2

    24 Aug 20262 fixes
    • Fixed

      Correct length-coded number size for the 3-byte range

    • Fixed

      promise: honour trace: false on every promise-API method (#4502) (1dcd8ef), closes #4501

  6. 3.24.1

    24 Aug 20261 new
    • New

      single-pass utf8 string encoding for outgoing packets

  7. 3.24.0

    23 Aug 20263 new · 1 fix
    • 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

  8. 3.23.4

    20 Aug 20262 fixes
    • Fixed

      Keep leading zeros in TIME fractional seconds

    • Fixed

      typings: align callback Pool and PoolConnection types with runtime

5 other lines we could not sort, mostly version bumps
  • named-placeholders library is updated to use newer lru-cache dependency, allowing it do dedupe and be shared between mysql2 and named-placeholders - #1711, #19

    3.0.0
  • chai and mocha moved to devDependencies #1774

    3.0.0
  • Amazon RDS ssl certificates updated including AWS China #1754

    3.0.0
  • TCP_NODELAY flag enabled, avoiding long connect timeout in some scenarios #1751

    3.0.0
  • Typing improvements

    3.0.0

7 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.