Packages

mysql2

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

Upgrading mysql2 From 1.3.5 to 3.23.1

123 releases in betweennotes for 93

Reading releases, release notes and advisories…

Other targets from 1.3.5Newest 1.x1.7.0Latest3.24.6
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.3.5yours
  2. 16 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. 11 releases
  16. 3.23.1target
3+
changes to make
7
advisories fixed
42+
new
101+
fixes

Counted from 93 of 123 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.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.