Packages

mysql2

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

Upgrading mysql2 From 3.16.1 to 3.23.1

25 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.16.1Newest 3.x, Latest3.24.6
  1. 3.16.1yours
  2. 1 release
  3. 3.16.3breaking
  4. 3.17.0security
  5. 9 releases
  6. 3.19.1security
  7. 11 releases
  8. 3.23.1target

Before you upgrade

Tick each one off as you go
  • Breaking3.16.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

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

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.