Packages

mysql2

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

Upgrading mysql2 From 3.11.1 to 3.24.6

53 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.11.1Clears its 2 advisories3.23.1
  1. 3.11.1yours
  2. 3.11.2breaking
  3. 18 releases
  4. 3.16.3breaking
  5. 3.17.0security
  6. 9 releases
  7. 3.19.1security
  8. 21 releases
  9. 3.24.6target
  10. 6 pre

Before you upgrade

Tick each one off as you go
  • Breaking3.16.3
  • Breaking3.11.2

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

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

1 internal line (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.