Packages

mysql2

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

Upgrading mysql2 From 2.3.3 to 3.23.1

93 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.3.3Latest3.24.6
  1. 2.3.3yours
  2. 3.0.0major
  3. 36 releases
  4. 3.9.3security
  5. 3.9.4security
  6. 2 releases
  7. 3.9.7security
  8. 28 releases
  9. 3.17.0security
  10. 9 releases
  11. 3.19.1security
  12. 11 releases
  13. 3.23.1target

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

    19 Jul 20262 fixes
    • Fixed

      security: fix unbounded decompression of server-supplied compressed packets, reported by alanturing881

    • Fixed

      parser: call typeCast for NULL values in the binary protocol

  2. 3.23.0

    14 Jul 20263 new
    • 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

  3. 3.22.6

    7 Jul 20261 fix
    • Fixed

      sql-escaper: resolve multi statement and expand object regressions

  4. 3.22.5

    6 Jun 20261 fix
    • Fixed

      Keep 00:00:00 time for TIMESTAMP in binary protocol with dateStrings

  5. 3.22.4

    26 May 20261 fix
    • Fixed

      pool: reject queued requests on end

  6. 3.22.3

    27 Apr 20261 fix
    • Fixed

      Allow resetOnRelease in connection config validation

  7. 3.22.2

    21 Apr 20261 fix
    • Fixed

      promise: point rejection stacks at caller for promise API

  8. 3.22.1

    17 Apr 20262 fixes
    • Fixed

      Async stack traces not pointing to correct source, regression introduced by #4257

    • Fixed

      packet: return INVALID_DATE for zero dates with numeric timezone offset

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

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.