Packages

mysql2

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

Upgrading mysql2 From 0.11.8 to 3.24.6

162 releases in betweennotes for 103

Other targets from 0.11.8Newest 0.x0.15.8Clears its 7 advisories3.23.1
2.0.0, 1.0.0 have no release note on GitHub or in the repository's changelog, so their breaking changes are missing from the counts below.
  1. 0.11.8yours
  2. 0.12.0major
  3. 5 releases
  4. 0.13.0major
  5. 0.14.0major
  6. 1 release
  7. 0.15.0major
  8. 8 releases
  9. 1.0.0major
  10. 26 releases
  11. 2.0.0major
  12. 13 releases
  13. 3.0.0major
  14. 36 releases
  15. 3.9.3security
  16. 3.9.4security
  17. 2 releases
  18. 3.9.7security
  19. 28 releases
  20. 3.17.0security
  21. 9 releases
  22. 3.19.1security
  23. 21 releases
  24. 3.24.6target
  25. 21 pre
3+
changes to make
7
advisories fixed
48+
new
115+
fixes

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